Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react js class component

// New component class starts here:
class Friend extends React.Component {
  render() {
    const friend = friends[0];
    return (
      <div>
        <h1>{friend.title}</h1>
        <img src={friend.src}/>
      </div>
    );
  }
}
Source by devhints.io #
 
PREVIOUS NEXT
Tagged: #react #js #class #component
ADD COMMENT
Topic
Name
8+2 =