Answers for "toastify react not working"

0

react toastify does not have design

import React, { Component } from 'react';
  import { ToastContainer, toast } from 'react-toastify';
  import 'react-toastify/dist/ReactToastify.css';
  // minified version is also included
  // import 'react-toastify/dist/ReactToastify.min.css';

  class App extends Component {
    notify = () => toast("Wow so easy !");

    render(){
      return (
        <div>
        <button onClick={this.notify}>Notify !</button>
          <ToastContainer />
        </div>
      );
    }
  }
Posted by: Guest on December-22-2020
0

toastify react not working

add toast.configure(); after toast
Posted by: Guest on September-14-2021

Code answers related to "toastify react not working"

Code answers related to "Javascript"

Browse Popular Code Answers by Language