react-codemod
react-codemod copied to clipboard
fix(class): history.replaceState member expression
In our code we have the following:
this.context.history.replaceState()
The deprecated APIs check only looks for history.replaceState. This fix makes the check more robust, by taking into account member expression types.