class Button extends React.Component { render() { return ( ); } } class Message extends React.Component { render() { // highlight-range{1-3} // The Message component must take `color` as as prop to pass it // to the Button. Using context, the Button could connect to the // color context on its own. return (
{this.props.text}