showing results for - "toastify react not working"
Zachariah
16 Mar 2018
1  import React, { Component } from 'react';
2  import { ToastContainer, toast } from 'react-toastify';
3  import 'react-toastify/dist/ReactToastify.css';
4  // minified version is also included
5  // import 'react-toastify/dist/ReactToastify.min.css';
6
7  class App extends Component {
8    notify = () => toast("Wow so easy !");
9
10    render(){
11      return (
12        <div>
13        <button onClick={this.notify}>Notify !</button>
14          <ToastContainer />
15        </div>
16      );
17    }
18  }
19
Amy
31 Sep 2018
1add toast.configure(); after toast