Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- render() {
- return (
- <table className="table">
- <tbody>
- {Object.keys(templates).map(function (template_name) {
- return (
- <tr key={template_name}>
- <tr>
- <td>
- <b>Template: {template_name}</b>
- </td>
- </tr>
- {templates[template_name].items.map(function (item) {
- return (
- <tr key={item.id}>
- <td>{item}</td>
- </tr>
- );
- })}
- </tr>
- );
- })}
- </tbody>
- </table>
- );
- }
- }
Add Comment
Please, Sign In to add comment