Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Replacing Loop div element with Fragment #65

Open
hasparus opened this issue May 17, 2018 · 0 comments
Open

Replacing Loop div element with Fragment #65

hasparus opened this issue May 17, 2018 · 0 comments

Comments

@hasparus
Copy link

const defaultStyles = {
height: '100%',
width: '100%',
};
const styles = { ...defaultStyles, ...this.props.style };
return (
<div style={styles}>
{this.props.children}
</div>
);
}

Since Loop doesn't say anything about rendering, maybe we could change this div to React.Fragment?
I'm happy to make a PR if it's okay.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant