Is there a way to remove the extra div wrapper in React when using ES2015?
This additional wrapper is causing issues with centering my component in C#.
#First div
.default-content {
margin-right: auto;
margin-left: auto;
padding: 16px 16px 16px 16px;
}
#second div
.full-width {
width:100%;
}
Here is what the code looks like once it's rendered:
<react-container params="component: MontelUI.React.CompactStory, args: {
newsId: 955888, userId: 1003465, bookmarkMainProp: false }">
<div>
<div>hei</div>
</div>
</react-container>
My render function appears as follows:
render() {
return (
<div>hei</div>
)
The component is invoked using a custom tag.