Book Image

React Cookbook

Book Image

React Cookbook

Overview of this book

React.js is Facebook's dynamic frontend web development framework. It helps you build efficient, high-performing web applications with an intuitive user interface. With more than 66 practical and self-contained tutorials, this book examines common pain points and best practices for building web applications with React. Each recipe addresses a specific problem and offers a proven solution with insights into how it works, so that you can modify the code and configuration files to suit your requirements. The React Cookbook starts with recipes for installing and setting up the React.js environment with the Create React Apps tool. You’ll understand how to build web components, forms, animations, and handle events. You’ll then delve into Redux for state management and build amazing UI designs. With the help of practical solutions, this book will guide you in testing, debugging, and scaling your web applications, and get to grips with web technologies like WebPack, Node, and Firebase to develop web APIs and implement SSR capabilities in your apps. Before you wrap up, the recipes on React Native and React VR will assist you in exploring mobile development with React. By the end of the book, you will have become familiar with all the essential tools and best practices required to build efficient solutions on the web with React.
Table of Contents (17 chapters)
15
Most Common React Interview Questions

Deploying to production on Digital Ocean

Digital Ocean is my favorite cloud-computing platform for using virtual servers (droplets) because it is effortless to create, configure, and delete droplets, and the price is low (you can get a droplet for $5 per month—that means $0.007 per hour). Another reason why I think Digital Ocean is fantastic is that they have all the documentation up to date and customer service is quick to solve any problem you may have.

For this recipe, we are going to use Ubuntu 18.04, so you will need to know some basic Linux commands to be able to configure your droplet. If you are entirely new to Linux, don't worry, I'll try to explain each step in a straightforward way.

Getting ready

...