Answer the question
In order to leave comments, you need to log in
How to include React in the working folder, and that everything worked?
Good time, I took up React, and to work with it there is a command *create-react-app - (my-app)*, this command creates a new folder with the packages and dependencies needed for React, how to configure React so that it works in working folder? Or create React stuff separately and then copy-paste it into your project? I don't understand this yet, thanks to those who respond
Answer the question
In order to leave comments, you need to log in
Create a new project via create-react-app in an empty folder, then npm run eject (spit out all the configs), then move the old project to the src folder. If there is no project, just create a project via create react app, and create files in the src folder, then include it in index.js as this is the entry point for webpack.
And what do you mean by working directory?
Create a ui folder in your project - and copy all the contents from the created create-react-app folder there and use it :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question