September 29, 2015
Reactjs - Let's learn the Reactjs - Part 1
What is Reactjs?
React is a UI library developed at Facebook to facilitate the creation of interactive, stateful & reusable UI components. It is used at Facebook in production, and Instagram.com is written entirely in React.
Below are the features of the React:
- It is the 'view 'in the application
- It use the concept of the components
- It use the concept of the virtual DOM
- It works on the Client as well as server side too
How to start?
- Download the reactjs library (react.js)
- Download the JSX library (JSXTransformer.js)
JSX - Javascript XML syntax
It lets you write the code not in the pure Javascript and behind the scene JSX converts it to Javascript. It helps in speeding the work and lesser the code.
How to use in code:
Below is the snippet how you can use the JSX in your Reactjs application
** @jsx React.DOM */
<script type="text/jsx">
//your code goes here
</script>
This is for now. In next post we will look into the building blocks of reactjs which are components.
Feedback and suggestions are welcome
Source: Google.com
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment