Skip to content

Generate even less code? #642

Closed
Closed
@gaearon

Description

@gaearon

From @remy’s amazing First Impressions of React, this paragraph made me sad:

I had a couple of false starts with trying create-react-app, react-boilerplate and another that I forget.

The reason for the false starts is that they contained way too much code and structure and expected understanding. I believe they'll be super useful once there's some understanding and ability to navigate the logic behind React apps, but for starting out, I needed to be closer to the metal, I needed to see the direct output of my coding efforts.

Is there anything we could do to better match your use case? These are the files we generate by default. We opted for a bare minimum, just enough to render a single component.

Here’s what we generate:

.gitignore          # good defaults
package.json        # needed for npm
README.md           # tips and usage guide
index.html          # your page
src/index.js        # entry point to show where to put side effects on launch
src/index.css       # put global CSS here
src/App.js          # an example component
src/App.css         # an example component stylesheet
src/App.test.js     # an example component test
src/logo.svg        # an image so you know how to import media assets in code

Should we cut something?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions