First step to react.
What is react? , NPM, Package.json , JSX, create a new react app, function components, redux,
React Basic Guide
What is React?
Before you learn , you should have known
Simple React Code Example
Before you started
you might have latest Node version and npm.
- Package JSON > when we initialized npm to our project, we will get package.json file in our project. It will show all the packages that you install with npm in version.
Sample package.json file
Let’s Get Started with React
- create react app
npx create-react-app react-app
add above code to your terminal. create react app is the easiest way to start a new react app. This command create a react app called react-app. You can give whatever you like “npx create-react-app my-app”.
change directory(cd) to you react-app that you create(cd react-app) and the command (ls) to show all the files, folder inside.
you will see like this
node_modules/ package.json public/ README.md src/ yarn.lock
run the app with the command