Fang Jin
1 min readApr 3, 2019

--

The question is how do I test this new component App ?

Redux or not, I don’t think this is problematic, couple of years later, this name will be gone. However props wired with App is essential, this is the door to treat it as testable function.

To me, global state management bypassing props is just defeating the entire purpose of using react .

Just my 2 cents.

--

--

Fang Jin
Fang Jin

Written by Fang Jin

Front-end Engineer, book author of “Designing React Hooks the Right Way” and "Think in Recursion"

Responses (1)