recks
  • Intro to RecksJS
  • Install
  • API
    • Lifecycle
    • Events
    • Subcomponents
    • Lists
    • DOM references
  • Libraries
    • State
  • GitHub
  • Playground
Powered by GitBook
On this page

Was this helpful?

  1. API

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

import Recks from 'recks';

function App() {
  const items = ['a', 'b', 'c', 'd'];

  return <ul>{
    items.map(letter => <li key={letter}>{letter}</li>)
  }</ul>
}

PreviousSubcomponentsNextDOM references

Last updated 4 years ago

Was this helpful?