Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react js nesting

class Info extends Component {
  render () {
    const { avatar, username } = this.props

    return <div>
      <UserAvatar src={avatar} />
      <UserProfile username={username} />
    </div>
  }
}
Source by devhints.io #
 
PREVIOUS NEXT
Tagged: #react #js #nesting
ADD COMMENT
Topic
Name
7+3 =