Skip to content
Advertisement

Tag: css-transitions

How to create a React Modal (which is appended to ) with transitions?

There is a modal in this answer https://stackoverflow.com/a/26789089/883571 which is creating a React-based Modal by appending it to <body>. However, I found it not compatible with the transition addons provided by React. How to create one with transitions(during enter and leave)? Answer At react conf 2015, Ryan Florence demonstrated using portals. Here’s how you can create a simple Portal component…

Advertisement