You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ToastContainer example in the react-toastify documentation has a syntax error. The transition prop is incorrectly assigned using the colon : instead of the equals = sign, which causes a syntax error.
Incorrect Code Example
<ToastContainer
position="top-right"
autoClose={5000}
hideProgressBar={false}
newestOnTop={false}
closeOnClick
rtl={false}
pauseOnFocusLoss
draggable
pauseOnHover
theme="light"
transition: Bounce,
/>
{/* Same as */}
Correction
The transition prop should be assigned using the equals = sign and the value should be enclosed in quotes.
Correct Code Example
{/* Same as */}
Steps to Reproduce
Copy the incorrect code example from the documentation.
Attempt to use it in a React component.
Observe the syntax error related to the transition prop.
Suggested Fix
Update the documentation to use the correct syntax for the transition prop as shown in the correct code example above.
The text was updated successfully, but these errors were encountered:
The ToastContainer example in the react-toastify documentation has a syntax error. The transition prop is incorrectly assigned using the colon : instead of the equals = sign, which causes a syntax error.
Incorrect Code Example
<ToastContainer
position="top-right"
autoClose={5000}
hideProgressBar={false}
newestOnTop={false}
closeOnClick
rtl={false}
pauseOnFocusLoss
draggable
pauseOnHover
theme="light"
transition: Bounce,
/>
{/* Same as */}
Correction
The transition prop should be assigned using the equals = sign and the value should be enclosed in quotes.
Correct Code Example
{/* Same as */}
Steps to Reproduce
Copy the incorrect code example from the documentation.
Attempt to use it in a React component.
Observe the syntax error related to the transition prop.
Suggested Fix
Update the documentation to use the correct syntax for the transition prop as shown in the correct code example above.
The text was updated successfully, but these errors were encountered: