0
React
class ShoppingList extends React.Component { render() { return ( <div className="shopping-list"> <h1>Shopping List for {this.props.name}</h1> <ul> <li>koo</li> <li>taka tak</li> <li>new</li> </ul> </div> ); } } // Example usage: <ShoppingList name="Mark" />
2 Respuestas
+ 4
What's your question?
Please be more specific and clear with your question:
https://www.sololearn.com/post/52212/?ref=app
https://www.sololearn.com/Discuss/1316935/?ref=app
+ 3
Vvk Here you go, your class component is working fine.
https://code.sololearn.com/WLmJwO0oySf2/?ref=app