Skip to content
Myr

Fix code example readability

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Andrey Sitnik · committed by Andrey Sitnik · parent d1c1f6f · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:README.md+2 added-1 removed
221 unmodified lines
222instead of `nanoid()`:223224```jsx225const todoItems = todos.map((text, index) =>226 <li key={index}> /* Still not recommended but preferred over nanoid(). Only do this if items have no stable IDs */226 <li key={index}> /* Still not recommended but preferred over nanoid().227 Only do this if items have no stable IDs. */228 {text}229 </li>230)231```
275 unmodified lines