Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react js class component

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

class Hello extends React.Component {
  render () {
    return <div className='message-box'>
      Hello {this.props.name}
    </div>
  }
}
Source by devhints.io #
 
PREVIOUS NEXT
Tagged: #react #js #class #component
ADD COMMENT
Topic
Name
6+4 =