code: function TodoList(props) {
      return h(
        'ul',
        null,
        props.items.map(function(item) {
          return h(
            'li',
            {
              key: item.id,
            },
            item.text,
          );
        }),
      );
    }
docs: To-do list adapted from example on https://reactjs.org.