Friday, April 1, 2016

working with react

react under construction will be uploading a version soon


React (sometimes styled React.js or ReactJS) is an open-source JavaScript library providing a view for data rendered as HTML. React views are typically rendered using components that contain additional components specified as custom HTML tags.
Its is so powerful in building single page  web application.
Lets get started

We going to use weback in this tutorial
Lets start by  add react to our dependencies to npm

$ npm install --save react react-dom babel-preset-react
$ webpack

whats a React Component class

These are user custom made user blocks that are represented in an xml format and during the implementation 
of that xml format react changes them into html format


 

import React from 'react';
import ReactDOM from 'react-dom';



 module.exports = React.createClass({

       
       render: function() {
           return 
Type the Zombie name below
{this.props.data}
; } });

No comments:

Post a Comment