Solving a problem using React
Before you start writing code for your web application, you need to think about the problems that your web application is going to solve. It's very important to understand that to define the problem as clearly and as early as possible is the most important step toward a successful solution—a useful web application. If you failed to define your problem earlier in your development process, or you defined it inaccurately, then later on you'll have to stop, rethink what you're doing, throw away a piece of the code that you have already written, and write a new one. This is a wasteful approach, and as a professional software developer, your time is very valuable not only to you but also to your organization, so it's in your best interest to invest it wisely. Earlier in this book, I stressed the fact that one of the benefits of using React is code reuse, which means that you'll be able to do more in less time. However, before we take a look at the React code, let...