Nice article. I want to share with you some questions that a recruiter has recently asked to me:
What’s the difference between let and var?
What is the spread operator?
How you decide to use function declaration vs expression declaration?
Thanks a lot for this article, it helps me to test my react app. However, I have a question:
If you follow the order of your steps like that and you have a component where some propTypes are required and they will be passed to it using props, using the snapshot as described in your example without props passed to the components returns an error for…
Sometimes we can not decide if redux is necessary when developing a new application if we don’t have a global vision about the app that we will create. So redux is a solution when we face a situation where some components have no relation between each others and we have to get some data to display them in our UI. The question of using redux is hard at the beginning however the situation you face will answer it.
Great article.Personally, my experience with tests is tedious. We have many tests in production and tests runs over 5 minutes and sometimes you wait a lot to get a failed one :/
You should add only non visited nodes to the queues to not get a cycle.
The react js community recommend to use the life cycle ComponentDidMount() to fetch data.
‘If you need to load data from a remote endpoint, this is a good place to instantiate the network request.’