My journey into the React Portal
I recently needed to render a flash message elsewhere in a React app. As far as I could tell, I had three choices:
- Use Redux and a connected component to render the flash message.
- Use Context, which is easier than ever to use thanks to the awesome
- Use something I saw in the React docs a while ago called a Portal.