Yogesh Borad
Yogesh Borad

Reputation: 4675

Module not found: Can't resolve 'react-addons-update' in 'E:\Redux\calc\src'

I have worked in ReactJS. I have found this error while Mutate a copy of data without changing the original source.

I have imported the update from 'react-addons-update':

enter image description here

Still it throws above error.

Upvotes: 2

Views: 3180

Answers (1)

Yogesh Borad
Yogesh Borad

Reputation: 4675

react-addons-update be replaced by immutability-helper? Apparently, Facebook is deprecating react-addons-update.

The solution is found myself:

npm install immutability-helper --save

Also, update import update replaced in code with :

import update from 'immutability-helper';

Upvotes: 3

Related Questions