![]() Npx create-react-app to create an application. ![]() IntelliJ IDEA also creates an npm start and JavaScript Debug configurations with default settings for running or debugging your application.Īlternatively, open the built-in Terminal and type: When you click Finish, IntelliJ IDEA generates a React-specific project with all the required configuration files and downloads the required dependencies. IntelliJ IDEA guarantees running and debugging Jest tests only with the react-scripts package. This can be one of the packages forked from react-scripts, for example, react-awesome-scripts, custom-react-scripts, react-scripts-ts, and so on. Specify a custom package to use instead of react-scripts during the project generation. When creating an application, select the folder where the create-react-app package is stored. Select a configured interpreter from the list or choose Add to configure a new one.įrom the create-react-app list, select npx create-react-app.Īlternatively, for npm version 5.1 and earlier, install the create-react-app package yourself by running npm install -g create-react-app in the Terminal Alt+F12. In the Node Interpreter field, specify the Node.js interpreter to use. On the second page of the wizard, specify the project name and the folder to create it in. ![]() In the right-hand pane, choose React App and click Next. In the New Project dialog, select Static Web in the left-hand pane. Select File | New | Project from the main menu or click the New Project button on the Welcome screen. Generating a React application with create-react-app ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |