Answers for "how to solve "Unexpected use of comma operator no-sequences" error in react"

0

how to solve "Unexpected use of comma operator no-sequences" error in react

return a <div> tag to the rendered component
put your other components inside the <div> tag.E.g;

const App=()=>{
    return(
        <div>
<Header/>,
<Body/>
        </div>
    );
}

ReactDom.render(<App/>,document.getElementByid("root));
Posted by: Guest on August-14-2021

Code answers related to "how to solve "Unexpected use of comma operator no-sequences" error in react"

Code answers related to "Javascript"

Browse Popular Code Answers by Language