Not working on react 16
See original GitHub issueHello, I’m trying a super simple example and, nothing is rendered in the screen, also no errors are logged in the console Here is the snippet, note that if I replace the “CardFlip” tag with a span, the element is rendered as expected:
...
import CardFlip from 'react-card-flip';
function Component(props){
return <CardFlip isFlipped={true}>
<div key="front">
<img
src="//img.buzzfeed.com/buzzfeed-static/static/2014-04/enhanced/webdr06/4/16/enhanced-11136-1396643149-13.jpg?no-auto"
/>
<button>Click to flip</button>
</div>
<div key="back">
<img
src="//img.buzzfeed.com/buzzfeed-static/static/2014-04/enhanced/webdr06/4/16/enhanced-11136-1396643149-13.jpg?no-auto"
/>
<button>Click to flip</button>
</div>
</CardFlip>
}
...
I’m using react V16.2.0
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Not able to use React 16 library in react 17 - Stack Overflow
I am not using any useState in accessing page. I have checked related questions, still haven't found any working solution.
Read more >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-dnd Module Not Found after upgrading from React 16 to ...
I recently upgraded my React project from 16.11 to 17. I'm getting the following error... any help or advice is appreciated: Description ...
Read more >Issues and side effects with Reactive Web and Mobile apps on ...
If you're running Platform Server 11.10.0, you can use Runtime using React 16 Technical Preview to anticipate possible breaking changes in ...
Read more >Troubleshooting | React Navigation
Sometimes it might even be due to a corrupt installation. If clearing cache didn't work, try deleting your node_modules folder and run npm...
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
I copy and pasted your code into your footer and it works properly.
When I have your
Flashcard
component render just the CardFlip code I am seeing the CardFlip component. Theimg
andbutton
elements are what is not being rendered onto the page. After removingRadium
, I was able to get them to render.This is not
react-card-flip
. Something inRadium
is conflicting with this package. I welcome a PR if you can figure out what the conflict is and whether it needs to be fixed in Radium or in react-card-flip.Got it!, thanks for the support!