When I first started learning about React, I had trouble understanding the difference between React Elements and React Components. Despite reading through the React guide, I couldn't quite get to that ah-ha moment. So I went exploring.
this as a major pain of the language. The
this and its many quirks and forms. We will lay out the four ways to set a function’s
this value, as well as discuss some common use cases and pitfalls.
Testing is a vital part of any development process. Whether a project's authors are hoping for scalability, fewer bugs, or just code that stands the test of time, a solid test suite is essential.
It's all well and good writing tests, but how do you know that you've tested the code that matters? Did you cover the most important components? Did you test the sad path? The edge cases? What about the zero states?
Using Istanbul, you can generate a nice coverage report to answer these questions. In this article, we'll look at how to get it set up in a typical clientside JS project.
- ← Previous
- Next →