
Every React component that calls fetch directly inside a useEffect is making a set of undeclared decisions. It has decided that the data should be re-fetched every time the component mounts. It has decided there is no cache. It has decided that loading state is a local boolean managed by useState. It has decided that […]
