Skip to content

Commit e35950e

Browse files
authored
Merge pull request #244 from slorber/patch-1
React 19 docs - do not advise to add a key in `getLineProps` + `getTokenProps`
2 parents f52167e + 8b49a1b commit e35950e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ advisable.
264264
#### `getLineProps`
265265

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

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

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

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

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

0 commit comments

Comments
 (0)