Create React App with x-pkg
The easiest way to get started with React.js is by using x-pkg. This CLI tool enables you to quickly start building a new React.js application, with everything set up for you. To get started, use the following command:
Interactive
You can create a new project interactively by running:
npx x-pkg@latest
You will be asked for the name of your project
What is your project named?
Non-Interactive
You can also pass command line arguments to set up a new project
non-interactively. See x-pkg --help
:
npx x-pkg <project-directory>