Pour utiliser le logiciel ReactJS, le plus simple est déjà d’installer NodeJS.
Sinon vous avez aussi la méthode suivante: https://facebook.github.io/react/downloads.html
Installation de NodeJS
wget https://nodejs.org/dist/v4.2.1/node-v4.2.1.tar.gz
./configure && make && make install
nodejs -v
v0.10.25
Installation de ReactJS
npm install --save react react-dom
Le fameux Hello World!
On commence le projet
mkdir helloworld<
touch helloworld.html
touch helloworld.js
Partie html (helloworld.html):
Hello World with ReactJS !
La partie JS (helloworld.js):
ReactDOM.render(
React.createElement('h1', null, 'Hello, world!'),
document.getElementById('example')
);
Pour aller plus loin
Vous pouvez lire cet article en anglais qui parle de la relation entre votre application React et les données que vous aller utiliser
https://www.g2i.co/blog/react-separation-of-concerns
Sources
Site officiel de ReactJS: https://facebook.github.io/react/
Lien Starter Kit: https://facebook.github.io/react/downloads/react-0.14.1.zip
Site nodeJS: https://nodejs.org
A vous de jouer !!!