React Introduction
What is React?
React is a JavaScript library (not a framework) that creates user interfaces (UIs) in a predictable and efficient way using declarative code. You can use it to help build single page applications and mobile apps, or to build complex apps if you utilize it with other libraries
React.JS History
Facebook Software Engineer, Jordan Walke, created it.
React.JS was first used in 2011 for Facebook's News feed feature.
The create-react-app version 2.0 package was released in October 2018.
Initial Release to the Public (V0.3.0) was in July 2013.
Create-react-app version 2.0 supports Babel 7, webpack 4, and Jest23.
Current version of React.JS is 17.0.1 (October 22, 2020).
Setting up a React Environment
Install create-react-app by running this command in your terminal:
sudo wget -qO- https://deb.nodesource.com/setup_14.x | sudo -E bash
sudo apt-get install -y nodejs
node -v
npm -v
Run
this command to create a React application named myfirstreact
:
npx create-react-app myfirstreact
Run
this command to move to the myfirstreact
directory:
cd myfirstreact
Run
this command to run the React application myfirstreact
:
npm start
The result:
Comments
Post a Comment