Skip to content

docs: fix undefined variable and inaccurate peer-deps note in README#6301

Open
maxim-belyakov wants to merge 1 commit into
Hacker0x01:mainfrom
maxim-belyakov:patch-2
Open

docs: fix undefined variable and inaccurate peer-deps note in README#6301
maxim-belyakov wants to merge 1 commit into
Hacker0x01:mainfrom
maxim-belyakov:patch-2

Conversation

@maxim-belyakov

Copy link
Copy Markdown

What

Two small getting-started documentation fixes in README.md:

  1. Undefined variable in example - the "most basic use" snippet used
    selected={startdate} (lowercase) while the surrounding example defines
    startDate / setStartDate. Copy-pasting threw startdate is not defined.

  2. Inaccurate install note - the README told users to install
    "React and PropTypes" separately. The package is TypeScript with no
    prop-types peer dependency; the real peers are react and react-dom.

Docs-only - no code or behavior changed.

- Correct `startdate` -> `startDate` in the basic-usage example so the snippet
  references the state variable it defines (previously threw
  "startdate is not defined" when copy-pasted).
- Replace the outdated "React and PropTypes" install note with
  "React and react-dom": the package is TypeScript and declares no prop-types
  peer dependency; react and react-dom are the actual peers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant