QuackatronHQ / Gigarepo

Non-interactive elements assigned mouse/keyboard event listeners JS-0760
Performance
Minor
a month ago2 years old
Non-interactive elements should not be assigned mouse or keyboard event listeners
 4export default function Home({ title, features }) {
 5  return (
 6    <>
 7      <h1 8        class="no-unknown-property" 9        font-size="24"10        onClick={() => console.log("Should not use bind in JSX props")}11      >12        {title || "Welcome to DeepSource"}
13      </h1>
14      <Hero
Non-interactive elements should not be assigned mouse or keyboard event listeners
 4export default function Home({ title, features }) {
 5  return (
 6    <>
 7      <h1 8        class="no-unknown-property" 9        font-size="24"10        onClick={() => console.log("Should not use bind in JSX props")}11      >12        {title || "Welcome to DeepSource"}
13      </h1>
14      <Hero