A
A
Alexander2018-11-16 18:33:20
React
Alexander, 2018-11-16 18:33:20

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

1 answer(s)
A
Alexey Laud, 2018-11-16
@kshshe

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 question

Ask a Question

731 491 924 answers to any question