fkhadra / fkhadra/react-toastify-doc

Bounce is not defined in documentation example — missing import causes runtime error.

Open
#106 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
9
Forks
305
PR merge metrics
No merged PRs in 30d

Description

I noticed that in the official documentation and Playground examples, the ToastContainer is shown using:
< ToastContainer transition={Bounce} />

However, the required import for Bounce is missing:
"**import { Bounce } from 'react-toastify';** "
This line is not shown

This causes a runtime error:
"_Uncaught ReferenceError: Bounce is not defined_"

Suggestion: Please add the missing import line to the docs:
**import { Bounce } from 'react-toastify';**
This would save many developers (especially beginners) from getting stuck on what seems like a syntax or runtime bug.

Thanks again! I’d be happy to open a pull request if needed.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the official documentation and Playground examples that render ToastContainer with transition={Bounce}. Check the example imports and add the missing Bounce import where needed; done means the examples no longer raise “Bounce is not defined” at runtime.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.