Create and configure basic ( blank ) React app
Creating a React app
We have to make a new folder because of npx. This little script is going to pollute that directory where you are currently in.
mkdir ProjectRoot
Ρd ProjectRoot
If you are going to use npm for the first time, do not forget to install the create-react-app package. We need this one.
npm install create-react-app
Letβs create our React app.
npx create-react-app Project
Checking if anything working correct
Go to project directory, Project.
cd Project
Execute next command:
npm start
You shall see something like this.
0
Related questions
- How does prop children work? Some components do not know their children in advance. This is especially true for components like Sidebar or Dialog, which are like a "box" into which you can put something. For such components, we recommend using a special prop children, which will pass the child elements directly to the output
- What is the difference between managed and unmanaged components? In a controlled component, each state mutation has a handler function associated with it. This makes validating or changing the input value a simple task. Uncontrolled components rely on the DOM as a data source and can be useful when integrating React with non-React code.
- How can I disable the ripple effect globally? The ripple effect is exclusively coming from the BaseButton component. You can disable the ripple effect globally by providing the corresponding value in your theme.