question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Example breaks down, because React 16 have no `react/lib/*`

See original GitHub issue

This 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:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
darthtrevinocommented, Sep 27, 2017

Yeah, my bad. That should be fixed in master now

1reaction
daniulacommented, May 29, 2018

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'; with import update from 'immutability-helper';

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found