Open calkusi opened 5 years ago
Listing 5.1 in the book has an error in the Content component class render() method:
render()
if (this.state.counter > 2) return
should be:
if (this.state.counter > 2) return <div/>
The source content.jsx for ch05 logger project is correct.
content.jsx
logger
Listing 5.1 in the book has an error in the Content component class
render()
method:if (this.state.counter > 2) return
should be:
if (this.state.counter > 2) return <div/>