Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

273
Views
React Hook useEffect recibió una función cuyas dependencias son desconocidas
function MoviePage(){ const [movies, setMovies] = useState([]); const [searchValue, setsearchValue] = useEffect(''); const getMovieRequest = async (searchValue) => { const url = `http://www.omdbapi.com/?s=${searchValue}&apikey=d03f9066`; const response = await fetch(url); const responseJson = await response.json(); if (responseJson.Search){ setMovies(responseJson.Search); } }; useEffect(() => { getMovieRequest(searchValue); }, [searchValue]);

producción

 Search for the keywords to learn more about each warning. To ignore, add // eslint-disable-next-line to the line before. WARNING in [eslint] src\pages\Movie.js Line 11:43: React Hook useEffect received a function whose dependencies are unknown. Pass an inline function instead react-hooks/exhaustive-deps webpack compiled with 1 warning
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

El error se lanza

 const [searchValue, setsearchValue] = useEffect('');

Creo que querías que fuera:

 const [searchValue, setsearchValue] = useState('');
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!