If you wanted to reuse the
<Loading /> component elsewhere, you wouldn’t be able to do so with this example because it is coupled. Not sure I would put it in
App.js since that is just exporting a
AuthLoading would have been a better name for this component.
Thanks for sharing! This was a great intro. I had a couple questions:
Is it common to put e2e tests in the same codebase as your web app?
What if you want to test a flow that changes between pages, is this possible with this setup? For example, and Authentication Flow with several pages of onboarding