Advertisement
Guest User

Untitled

a guest
Jul 16th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. render() {
  2.  
  3.     let poemsMarkup = '';
  4.  
  5.     for(i of poems) {
  6.  
  7.         poemsMarkup += <Poem my="attributes">ReactHtmlParser(html)</Poem>
  8.     }
  9.  
  10.     return (
  11.         <div>{poemsMarkup}</div>
  12.     )
  13.  
  14. }
  15.  
  16. ///.....
  17. /// Poem Component
  18.  
  19. render() {
  20.     return (
  21.         <div>{this.props.children}</div>
  22.     )
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement