Promises are a really useful tool for writing non-blocking, concurrent code, and they're available today in your favorite browser. Promises can make potentially frightening asynchronous code look downright friendly. However, using promises does not guarantee correct code.
There are so many JS frameworks! It can get tiring to keep up to date with them all.
Joking aside, when it comes to choosing frameworks for a project, emerging frameworks just haven't been battle-tested enough for me to recommend to clients in most cases.
But like much of the community, I feel pretty confident in the future of React. It's well documented, makes reasoning about data easy, and it's performant.
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.