Flash
Flash messages for next.js. Works on both the client and the server.
Example
; static async { return flash || {} } { flash } { return <div> <Head> <title>Flash messages in Next</title> <meta name='viewport' content='width=device-width, initial-scale=1' /> </Head> thispropsname ? <div>FLASH MESSAGE thispropsname</div> : <div /> <button onClick= this>Create flash message</button> <br /> <Link href=`/?`>Client-Side Route</Link> </div> }
Installation
yarn add next-flash
License
MIT