import {h, Component} from 'preact';
export default class PropList extends Component {
render() {
const aaa = ['a', 'b', 'c'];
const list = aaa.map((item, index) => {
return <div>foo bar</div>
});
console.log(list);
return {list};
}
}
my project is based on https://github.com/developit/preact-boilerplate and I put this into app.js Router part.
<PropList path="/test"/>
and I get this:

that "undefined" is my PropList.
sorry, my fault.
I found this: https://github.com/developit/preact/issues/45
and this: http://stackoverflow.com/questions/32157286/rendering-react-components-from-array-of-objects
and I should review this: https://facebook.github.io/react/docs/lists-and-keys.html
Most helpful comment
sorry, my fault.
I found this: https://github.com/developit/preact/issues/45
and this: http://stackoverflow.com/questions/32157286/rendering-react-components-from-array-of-objects
and I should review this: https://facebook.github.io/react/docs/lists-and-keys.html