Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const style={
- height:"10px"
- }
- if(this.props.space){
- style.width=30;
- }
- render(){
- return(
- {React.Children.map(children, (child, i) => {
- return (
- <React.Fragment>
- <span style={style}></span>
- <React.Fragment>{child}</React.Fragment>
- </React.Fragment>
- );
- })}
- )
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement