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" />

1st Aug 2021, 5:31 AM
Vvk
Vvk - avatar
2 ответов
+ 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
1st Aug 2021, 6:28 AM
The future is now thanks to science
The future is now thanks to science - avatar
+ 3
Vvk Here you go, your class component is working fine. https://code.sololearn.com/WLmJwO0oySf2/?ref=app
1st Aug 2021, 7:39 AM
Calviղ
Calviղ - avatar