Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Issues
  • #2482
Closed
Open
Issue created Jun 06, 2017 by Administrator@rootContributor

Component generator (is it worth adding to docs?)

Created by: diegohaz

Hello, guys.

After some weeks talking with developers on Facebook, Twitter, Reddit and real life, I realized that most of them take common steps when creating new components in React:

facebook poll

So I wrote a lib to generate components based on that steps, following these principles:

  • just one command;
  • no configuration;
  • no templates;
  • no need to read docs at all;
  • follows user's conventions since generated components are based on the existing project's components.

The result is this: https://github.com/diegohaz/generact

generact

It addresses #1242 (closed) and #1886

Following instructions on https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#something-missing, I'm creating this issue to ask you guys if it worth mentioning in the docs.

Assignee
Assign to
Time tracking