Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. const style={
  2. height:"10px"
  3. }
  4.  
  5.  
  6. if(this.props.space){
  7. style.width=30;
  8. }
  9.  
  10. render(){
  11. return(
  12.  
  13. {React.Children.map(children, (child, i) => {
  14. return (
  15. <React.Fragment>
  16. <span style={style}></span>
  17. <React.Fragment>{child}</React.Fragment>
  18. </React.Fragment>
  19.  
  20. );
  21. })}
  22. )
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement