recks
Search…
Lists
To create a list of elements — map your array on a JSX element, String, or Observable
Lists require each child to have a unique key for rendering
1
import Recks from 'recks';
2
3
function App() {
4
const items = ['a', 'b', 'c', 'd'];
5
6
return <ul>{
7
items.map(letter => <li key={letter}>{letter}</li>)
8
}</ul>
9
}
Copied!
Last modified 1yr ago
Copy link