You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
If you use one of modern editors, you can learn and start using feature
called "Snippets"
Basically you can make a template for any repetitive pease of code and type
some short combination to print your own snippet in place it is needed.
2017-10-21 5:19 GMT+08:00 Mani Maghsoudlou <[email protected]>:
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!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3307>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACJseRomY1f3dqciJzpTWtIcieISP2flks5suQ5-gaJpZM4QBPmD>
.
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 undersrc/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!
The text was updated successfully, but these errors were encountered: