Skip to content

Can't wrap Col/Row ? #86

Open
Open
@cristianoccazinsp

Description

@cristianoccazinsp

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions