Marcus Christiansen
1 min readMay 25, 2018

--

I’m still new to React and React Native but if I may make a small correction. Adding a check to see if the user is logged in, inside the Login component couples this Loading component to the logging in functionality, which means if you wanted to re-use it again for example when loading a list inside your app, you couldn’t.

Would it make more sense to instead do the auth check inside App.js?

--

--

Responses (1)