Im new to react.js. I'd like to render out a component. like this
import styled from "styled-components";
import Panel from "./Panel";
const Menu = () => {
return (
<Main>
<div>
<h1 onClick={Panel}>(1+3)</h1>
</div>
but I don't think it's right so how do u render specific component with onClick in react.js ??