Making a video player in React should be easy, right? A boolean value can keep track of whether it is playing or not... but has the video been loaded yet? And how can we determine if it is paused or if it has just reached the end of the track? A Finite State Machine can help us define these different states and how one transitions to the next. Using XState within React can help us make complicated UIs easier to understand.
Knowing the similarities and differences between Google Maps and MapBox within a React app will help you pick the right tool for the job. This article compares and contrasts these two popular libraries, getting you up and running with whichever one you choose.
We're going to build a modern app using React and TypeScript, and understand why types are spreading so fast across every JavaScript developer community, helping us build better and safer applications.
Having fast and consistent results is vital to testing effectively. Working with and testing your React components that use GraphQL queries is no exception. In this article, we'll explore both static and dynamic mocking options.