ReactJS Installation | ReactJS Environment Setup
To work on ReactJS we need following software.
- NodeJS (click here to download)
- Any Text Editor like Notepad++, Eclipse, ATOM (click here to download ATOM)etc. (I am using ATOM)
To start working on ReactJS, Please download above software and install it in your system.
Set Path of NodeJS
After installing NodeJS in system, you have to set path of NodeJS in your system so that you can run commands of NodeJS from any location.
To Set path right click on My Computer >> Properties >> Advanced System Setting >> In Advanced Tab, click on Environment Variable >> click on New button >> Enter variable name : path & Enter Variable value : C:\Program Files\nodejs (where you installed NodeJS) >> Ok >> Ok >> Ok.
Now open command prompt and validate the path has been set properly or not by giving following command.
Introduction to React and its supported libraries
ReactJS is used to create user interfaces. but we need some other supported libraries while working on ReactJS. Here, some of them are listed.
1. React
React is a front-end libray to create user interfaces.
2. React DOM
ReactDOM is the glue between React and the DOM. The ReactDOM module exposes DOM-specific methods. The react-dom package contains ReactDOM.render, ReactDOM.unmountComponentAtNode, and ReactDOM.findDOMNode .
3. WebPack
Webpack is a tool that helps you deal with dependencies in your js and generate a bundle out of them. It does not stop at that though, through it is loaders, its able to compile SASS or LESS to css as well, and a whole bunch of other things.
4. Babel
Basically this will transpile our fancy ES6 to ES5 which can be understood by browsers (some browsers can execute ES6 already, but most of them still can't)
5. Redux
Redux is a library that helps you manage your app's state. It derives from various things, one of them the Flux architecture.
6. Webpack Dev Server
If you check the root of your project you will find a node server called 'server'. This server is only useful for development. Without this server we wouldn't be able to actually run webpack.
0 comments:
Post a Comment