Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- render() {
- let poemsMarkup = '';
- for(i of poems) {
- poemsMarkup += <Poem my="attributes">ReactHtmlParser(html)</Poem>
- }
- return (
- <div>{poemsMarkup}</div>
- )
- }
- ///.....
- /// Poem Component
- render() {
- return (
- <div>{this.props.children}</div>
- )
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement