0

I want to show 3 messages in One single toast. Once the toast is launched , in the same toast show next set of messages. Infact i want to do concatenation of messages. How do i do this in React

1
  • Please share your code @nanda
    – Yuvaraj M
    Commented Mar 1 at 5:28

1 Answer 1

0

You can do that by appending jsx in your react-toastify this way: Check this Link for more info:

Example Code:

toast.error(<div>{this.trans.invalid}<br /> sorry</div>, { position: toast.POSITION.UPPER_RIGHT });

This way, you can append messages as well as customize it according to your requirements.

Let me know, If you have any other questions.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.