Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revisionLast revisionBoth sides next revision | ||
public:computer:react.js [2023/01/02 16:36] – alex | public:computer:react.js [2023/01/10 11:47] – alex | ||
---|---|---|---|
Line 11: | Line 11: | ||
===== Preparings ===== | ===== Preparings ===== | ||
- | * Install Node.js on Ubuntu <sxh bash> | ||
- | # to install node.js we need CURL | ||
- | $ sudo apt install -y curl | ||
- | # install | + | {{page> |
- | $ sudo apt update & sudo apt upgrade -y | + | |
- | $ sudo apt install nodejs | + | |
- | $ nodejs -v | + | |
- | $ sudo apt install npm | + | |
- | $ npm -v | + | |
- | # using PPA | ||
- | $ curl -sL https:// | ||
- | $ sudo bash nodesource_setup.sh | ||
- | $ sudo apt-get install nodejs | ||
- | $ sudo apt-get install build-essential | ||
- | </ | ||
- | * nvm < | + | ===== Getting Started ===== |
- | $ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash | + | ==== Hello, World ==== |
- | $ source ~/.bashrc | + | < |
- | $ nvm list-remote | + | < |
- | $ nvm install | + | < |
- | $ nvm list | + | < |
- | $ nvm use <version> | + | <meta charset=" |
- | </sxh> | + | |
- | | + | < |
- | $ npm install -g npm@lsatest | + | |
- | $ npm -v | + | <script src="https://unpkg.com/ |
+ | <script src=" | ||
+ | <script src=" | ||
+ | </head> | ||
+ | |||
+ | < | ||
+ | <div id=" | ||
+ | |||
+ | <script type=" | ||
+ | class App extends React.Component { | ||
+ | | ||
+ | | ||
+ | } | ||
+ | } | ||
+ | |||
+ | ReactDOM.render(<App />, document.getElementById(' | ||
+ | </script> | ||
+ | </body> | ||
+ | </ | ||
</ | </ | ||
===== References ===== | ===== References ===== | ||
* [[https:// | * [[https:// | ||
+ | * [[https:// | ||
* [[https:// | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
* [[https:// | * [[https:// | ||
- | * [[https:// | ||