Skip to content

Instantly share code, notes, and snippets.

@brandoncc
Created June 4, 2019 23:34
Show Gist options
  • Save brandoncc/689285f211846383d6de8056eb3f861b to your computer and use it in GitHub Desktop.
Save brandoncc/689285f211846383d6de8056eb3f861b to your computer and use it in GitHub Desktop.
import React from "react";
import { Portal } from "./Portal";
export default function FlashMessage() {
return (
<Portal>
<div class="alert alert-primary" role="alert">
This is a special announcement, be sure and read it!
</div>
</Portal>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment