How to create functional components using command line?

Forums ReactHow to create functional components using command line?
Staff asked 3 years ago

Is there any command to create functional component?

Answers (1)

Add Answer
Umang Ramani Marked As Accepted
Staff answered 3 years ago

You can use the following commands :

  1. npm install -g generate-react-cli
  2. generate-react component Box

 

But there is one problem is this command generate new folder for each component

Subscribe

Select Categories