link Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>? (64:12) code example
Example 1: Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...>?
render() {
return (
<React.Fragment>
<ChildA />
<ChildB />
<ChildC />
</React.Fragment>
);
}
Example 2: Adjacent JSX elements must be wrapped in an enclosing tag
return(
<div id="div1"></div>
<div id="div1"></div>
)
return(
<div id="parent">
<div id="div1"></div>
<div id="div1"></div>
</div>
)