npm i -D [email protected]
- use
<div></div>
- use your own
<Wrapper>
element returning props.children - use
<Fragment></Fragment>
elements - use short fragement element
<></>
const Product = () => {
return <h2>A product!</h2>
}
class Product extends Component {
render() {
return <h2>A product!</h2>
}
}
in .eslintrc.json file
{
"extends": ["next/babel","next/core-web-vitals"]
}
Create .babelrc file and add
{
"presets": ["next/babel"],
"plugins": []
}