Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react

import react, { Component}  from 'react';
import ReactDOM  from 'react-dom';

export default class SuperHero extends Component {

    constructor(props){
       super(props);
       this.state = {
           name: 'Ironman',
           weapon: 'Suit'
       }
    }
    render(){
        return(
            <span>Welcome {this.state.name}</span>
        );
    }
}
Source by akashmittal.com #
 
PREVIOUS NEXT
Tagged: #react
ADD COMMENT
Topic
Name
4+2 =