useNotificationCenter docs are not correct

Open Beginner friendly
#1,266 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
62/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Stale
Tech stack
react, typescript
Domain
documentation

Research direction

Open the linked useNotificationCenter documentation at its Import section and compare the example with the addon entry point shown in the issue. Update the documentation example to match react-toastify 11.0.5, then check the rendered page and confirm the import snippet is correct.

Written by the indexing model from the issue text.

Description

Hi there, just wanted to point out that in react-toastify": "^11.0.5 the path to import useNotificationCenter is the following:

import { useNotificationCenter } from "react-toastify/addons/use-notification-center";

this does not match the documentation:
https://fkhadra.github.io/react-toastify/addons/use-notification-center#import

import { useNotificationCenter } from "react-toastify/addons/useNotificationCenter"
Dominant language
TypeScript
Stars
13.4k
Forks
742
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from fkhadra/react-toastify

All issues in fkhadra/react-toastify

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.