1class ShoppingList extends React.Component {
2 render() {
3 return (
4 <div className="shopping-list">
5 <h1>Shopping List for {this.props.name}</h1>
6 <ul>
7 <li>Instagram</li>
8 <li>WhatsApp</li>
9 <li>Oculus</li>
10 </ul>
11 </div>
12 );
13 }
14}
15
16// Example usage: <ShoppingList name="Mark" />