Use hooks for contexts
Something that can be washed in gradually:
Instead of using contexts like:
const {...} = useContext(SomeContext);
Instead expose the context through hooks:
const {...} = useSomeContext();
This can be useful for preventing type name collisions, and for reducing the number of required imports (from the Context and useContext, to just the hook)
Merge request reports
Activity
Filter activity
requested review from @johannaszepanski
assigned to @christinajenks
mentioned in commit f9cfddcc
Please register or sign in to reply