deepsourcestatus / test-repository

Non-interactive elements assigned mouse/keyboard event listeners JS-0760
Performance
Minor
8 months ago8 months old
Non-interactive elements should not be assigned mouse or keyboard event listeners
 4export default function Home({ title, features }) {
 5  return (
 6    <>
 7      <h1 class="no-unknown-property" font-size="24" onClick={() => console.log('Should not use bind in JSX props')}> 8        {title ? title : `Welcome to DeepSource`}
 9      </h1>
10      <Hero className={'bg'} title='DeepSource is how you write clean and secure code' title=''></Hero>
Non-interactive elements should not be assigned mouse or keyboard event listeners
 4export default function Home({ title, features }) {
 5  return (
 6    <>
 7      <h1 class="no-unknown-property" font-size="24" onClick={() => console.log('Should not use bind in JSX props')}> 8        {title ? title : `Welcome to DeepSource`}
 9      </h1>
10      <Hero className={'bg'} title='DeepSource is how you write clean and secure code' title=''></Hero>