Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new command to create simple class component boilerplate #3307

Closed
manidlou opened this issue Oct 20, 2017 · 1 comment
Closed

Add new command to create simple class component boilerplate #3307

manidlou opened this issue Oct 20, 2017 · 1 comment

Comments

@manidlou
Copy link

Will you be interested in adding a new command that creates simple class component boilerplate something like create-react-app component <componentName> which creates the component file under src/components/<componentName>.js that includes {import React, class declaration, constructor, empty render(), and export class} just to make the development a bit faster as we usually create many components when we are developing a React app?!

I personally find that very useful and handy because currently when I create a new component, not always but most of the time, I basically copy and paste all those mentioned general parts from another class component and then start working on the actual logic of that component.

I appreciate your feedback in advance!

@JustFly1984
Copy link

JustFly1984 commented Oct 21, 2017 via email

@lock lock bot locked and limited conversation to collaborators Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants