|
|
| (29 intermediate revisions by the same user not shown) |
| Line 1: |
Line 1: |
| − | https://www.udemy.com/course/react-redux/
| |
| | | | |
| − |
| |
| − | '''Install React:'''
| |
| − |
| |
| − | Install Node.js and npm:
| |
| − | <syntaxhighlight lang="shell">
| |
| − | # 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
| |
| − | </syntaxhighlight>
| |
| − |
| |
| − |
| |
| − | <br />
| |
| − | '''Start a New React Project - Official documentation''':<br />
| |
| − | <span style="color:green; font-weight:bold">If you want to build a new app or a new website fully with React, we recommend picking one of the React-powered frameworks popular in the community.<br />
| |
| − | Can I use React without a framework?<br />
| |
| − | You can definitely use React without a framework—that’s how you’d use React for a part of your page. However, if you’re building a new app or a site fully with React, we recommend using a framework. <br />
| |
| − | Here’s why... </span> https://react.dev/learn/start-a-new-react-project
| |
| − |
| |
| − | <syntaxhighlight lang="shell">
| |
| − | npx create-next-app name_project # Next.js es el primer frameworks propuesto en la documentacion
| |
| − | npx create-react-app name_project # React without a framework
| |
| − | </syntaxhighlight>
| |
| − |
| |
| − |
| |
| − | <br />
| |