Difference between revisions of "React 2"

From Sinfronteras
Jump to: navigation, search
Line 10: Line 10:
 
sudo apt install -y nodejs
 
sudo apt install -y nodejs
 
sudo apt install -y npm
 
sudo apt install -y npm
 +
sudo npm install -g create-react-app
  
 
node -v
 
node -v
 
npm -v
 
npm -v
 +
create-react-app -V  # Capital V
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Revision as of 19:17, 17 April 2023

https://www.udemy.com/course/react-redux/

Install React:

Install Node.js and npm:

# Add the Node.js repository:
curl -sL https://deb.nodesource.com/setup_lts.x | sudo -E bash -

sudo apt install -y nodejs
sudo apt install -y npm
sudo npm install -g create-react-app

node -v
npm -v
create-react-app -V   # Capital V



Start a New React Project official documentation: https://react.dev/learn/start-a-new-react-project