Implement Custom Toast Component in React JS | React Toasts

Поділитися
Вставка
  • Опубліковано 17 жов 2024

КОМЕНТАРІ • 5

  • @VenusVanessa06
    @VenusVanessa06 8 місяців тому

    Hi, I needed all this information thanks, but wow you went REALLY FAST. I had to watch this back 3 billion times to try understand what was going on. But thank you anyway.

    • @MERNStack
      @MERNStack  8 місяців тому +1

      Haha 😂 thanks that it helped u

  • @scherschak
    @scherschak 9 місяців тому

    What about a stack of toasts?

    • @MERNStack
      @MERNStack  9 місяців тому

      You will have to maintain an array of string messages and display the toasts by using .map to create multiple components... and push those messages on add toast function. And then everytime new item is pushed use a create a timer to remove that item from array after specified timeout

  • @Anand4213
    @Anand4213 Рік тому

    Awesome🔥🔥