Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React 19 docs - do not advise to add a key in getLineProps + getTokenProps #244

Merged
merged 1 commit into from Apr 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -264,7 +264,7 @@ advisable.
#### `getLineProps`

You need to add a `line` property (type: `Token[]`) to the object you're passing to
`getLineProps`; It's also advisable to add a `key`.
`getLineProps`.

This getter will return you props to spread onto your line elements (typically `<div>s`).

Expand All @@ -277,7 +277,7 @@ The `className` will always contain `.token-line`.
#### `getTokenProps`

You need to add a `token` property (type: `Token`) to the object you're passing to
`getTokenProps`; It's also advisable to add a `key`.
`getTokenProps`.

This getter will return you props to spread onto your token elements (typically `<span>s`).

Expand Down