ft-interactive / starter-kit

A template for IG pages
65 stars 15 forks source link

Removing the example useState/useEffect hooks in app.js #241

Closed aendra-rininsland closed 5 years ago

aendra-rininsland commented 5 years ago

They conflict with how I've been telling people to load data (to wit: from config/index.js on the context). If people need to dynamically load external data (which is fairly unusual and mainly done by DJD team for things like elections), they can read the docs on useState and useEffect themselves.

aendra-rininsland commented 5 years ago

The useEffect/useState way of initially loading data is better because it reduces TTI and allows putting in loading logic. Closing.