Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Stateful/Container/Smart component

class Main extends Component {
 constructor() {
   super()
   this.state = {
     books: []
   }
 }
 render() {
   <BooksList books={this.state.books} />
 }
}
Source by programmingwithmosh.com #
 
PREVIOUS NEXT
Tagged: #component
ADD COMMENT
Topic
Name
6+9 =