nr-react-list
Utility Component to render an iterator(Array of objects)
List with an "item" prop
const data = 'one' 'two' 'three';const Button = <button>item</button>; // Use List Component// Notice the button component has an "item' prop// By default List component expect an item prop <List of=Button iterator=data />;
Will render
one two three
List with a custom propname
const navs = 'Home' 'About' 'Contact'; const NavLink = <li>display</li>; // just add a custom "propname" prop to List Component { return <ul> <List of=NavLink iterator=navs propname="display" /> </ul> }
Will render
Home About Contact