Closed morleyzhi closed 6 years ago
[style-components](https://github.com/styled-components/styled-components) just released v4 which moved to the forwardRef API.
[style-components](https://github.com/styled-components/styled-components)
React Flip Move supported styled-components v3 children, but with v4, we get this error:
Error: Uncaught [TypeError: Cannot read property 'isReactComponent' of undefined]
To reproduce, clone this repo, install, and run yarn test:
yarn test
https://github.com/morleyzhi/styled-flip
This will show the following:
More information is here: https://github.com/styled-components/styled-components/issues/2124
Going to open a PR with an attempted fix.
See https://github.com/joshwcomeau/react-flip-move/pull/238
Thanks @morleyzhi! Shipped in 3.0.3
3.0.3
[style-components](https://github.com/styled-components/styled-components)
just released v4 which moved to the forwardRef API.React Flip Move supported styled-components v3 children, but with v4, we get this error:
Error: Uncaught [TypeError: Cannot read property 'isReactComponent' of undefined]
To reproduce, clone this repo, install, and run
yarn test
:https://github.com/morleyzhi/styled-flip
This will show the following:
More information is here: https://github.com/styled-components/styled-components/issues/2124