1<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/toastify-js"></script>
1 import React from 'react';
2
3 import { ToastContainer, toast } from 'react-toastify';
4 import 'react-toastify/dist/ReactToastify.css';
5
6 function App(){
7 const notify = () => toast("Wow so easy!");
8
9 return (
10 <div>
11 <button onClick={notify}>Notify!</button>
12 <ToastContainer />
13 </div>
14 );
15 }