Example breaks down, because React 16 have no `react/lib/*`
See original GitHub issueThis example import update
from react/lib/
.
But in react 16 blog post:
There is no react/lib/* and react-dom/lib/* anymore
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Error Handling in React 16 – React Blog
As React 16 release is getting closer, we would like to announce a few changes to how React handles JavaScript errors inside components....
Read more >React v16.8: The One With Hooks
Hooks have no breaking changes, and we have no plans to remove classes ... Hooks won't work if you forget to update, for...
Read more >Error Boundaries - React
Error boundaries are React components that catch JavaScript errors anywhere in their child component tree, log those errors, and display a fallback UI...
Read more >Introducing Hooks - React
Hooks are a new addition in React 16.8. They let you use state and other React features without writing a class. This new...
Read more >React v16.0 – React Blog
Breaking changes · Calling setState with null no longer triggers an update. · Calling setState directly in render always causes an update.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah, my bad. That should be fixed in master now
For those who are upgrading from React 15 to React 16, used one of the deprecated examples in their code and end up here looking for help. The solution is simply to replace:
import update from 'react/lib/update';
withimport update from 'immutability-helper';