Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

class component react js

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: #class #component #react #js
ADD COMMENT
Topic
Name
2+1 =