Answer the question
In order to leave comments, you need to log in
How to simplify file creation in react?
When I create a new component, for example, a button, I create a Button folder in the Ui folder, it contains 2 files - Button.js, Button.css.
Is there a way to simplify this and create a folder with files in it with one command?
Answer the question
In order to leave comments, you need to log in
I made myself a template generator for this: link to npm . You can also do something like this, so that you store the template somewhere, and everything is generated from the necessary parameters, like the name.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question