useEffect and component lifecycle
Component lifecycle in React consists of a series of phases. These phases can be leveraged to trigger and control the execution of your code.
Component lifecycle in React consists of a series of phases. These phases can be leveraged to trigger and control the execution of your code.
Turns out authentication is not a mystery, it's a client making a properly formatted request to a special type of server, with the expectation of a particular response.
In order to write tests that avoid implementation details, we need a collection of tools that encourage us to test our components from the perspective of the user. This article outlines the four types of tools you need to test your components successfully.
'Implementation details' is one of a few terms you are likely to see if, like me, you are researching approaches to testing in React. Knowing what they are and why you probably want to avoid them can be helpful when trying to understand what you do want to test.