Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>? (10:0) 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

// Incorrect
return(
    <div id="div1"></div>
    <div id="div1"></div>
  )

// Correct

 return(
      <div id="parent">
        <div id="div1"></div>
        <div id="div1"></div>
      </div>
      )