const USER_DATA = { name: "Tyler McGinnis", username: "tylermcginnis", image: "https://avatars0.githubusercontent.com/u/2933430?v=3&s=460" }; let React = require("react"); let ReactDOM = require("react-dom"); /* React components should be: Focused Independent Reusable Small Testable */ let ProfilePic = React.createClass({ render: function () { return ( ); } }); let ProfileLink = React.createClass({ render: function () { return (
{this.props.username}
); } }); let ProfileName = React.createClass({ render: function () { return (
{this.props.name}
); } }); let Avatar = React.createClass({ render: function () { const user = this.props.user; return (
); } }); ReactDOM.render( , document.getElementById("app") );