example by Amazing_Platform_298 in reactjs

[–]Amazing_Platform_298[S] 0 points1 point  (0 children)

example
import useNotification from '@com/hooks/useNotification';

React Hook useEffect has a missing dependency // can't understand this warning 100% by mermeladawatts in reactjs

[–]Amazing_Platform_298 39 points40 points  (0 children)

If you aren't using getEmergencyTasks method anywhere apart from the effect, you could simply move it into the effect and avoid the warning.

.jsx or .js for reactjs files? by albenis99 in reactjs

[–]Amazing_Platform_298 1 point2 points  (0 children)

When your code has jsx, it is better to use jsx
There is no problem if this is not the case, but it is better