Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't wrap Col/Row ? #86

Open
cristianoccazinsp opened this issue Mar 26, 2019 · 2 comments
Open

Can't wrap Col/Row ? #86

cristianoccazinsp opened this issue Mar 26, 2019 · 2 comments

Comments

@cristianoccazinsp
Copy link

I'm trying to wrap Col and Row in another component, so I can customize it with some defaults (for example, have all rows have a padding).

However, something as simple as this:

export class Row extends React.Component{

    render(){
        return <_Row {...this.props}>{this.props.children}</_Row>
    }
}

Renders the component totally useless (it gets rendered completely wrong). Is there any implementation detail preventing this?

How would I add some default styles to my Row/Cols?

Thanks.

@Kireeti-K
Copy link

I also have the same issue, is there any solution for this?

@joeljerushan
Copy link

Solution or fix needed :(

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

No branches or pull requests

3 participants