showing results for - "react tostify"
Stefania
13 Jun 2016
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  }