LaisFSGomes / biblioteca

Avoid .bind() or local functions in JSX properties JS-0417
Performance
Major
3 occurrences in this check
JSX props should not use arrow functions
14  }
15
16  return(
17    <form onSubmit={submitSearch} className='Search' >18      <input className='input-search'
19        id='search'
20        type = 'search'
JSX props should not use arrow functions
18      <input className='input-search'
19        id='search'
20        type = 'search'
21        onChange={buscaInput}22      />
23      <button className='button-search' type='submit'>
24          Search
JSX props should not use arrow functions
23  return (
24    <div className='App'>
25      <h1 className='title'>{props.title}</h1>
26      <Search info = {fetchData} />27      <List list={books.hits} />
28      <Footer info={props.footer} />
29    </div>