learning-react icon indicating copy to clipboard operation
learning-react copied to clipboard

Ch9 p202 and p203

Open Watson1007 opened this issue 4 years ago • 0 comments

render() { const { error } = this.state; const { children, fallback } = this.props; if (error) return ; return children;

The destructing value fallback where it use?

render() { const { error } = this.state; const { children } = this.props; if (error && !fallback) return ; if (error) return ;

Can I use fallback without destructing value here?

Watson1007 avatar Jan 28 '22 08:01 Watson1007