Technical requirements
This chapter requires you to complete the exercises in Chapter 1, Getting Familiar with the Amplify CLI and Amplify Console, to ensure you have added Amplify Hosting to your project. Amplify Hosting only works with the ReactJS and React Native for Web projects. Yes, React Native for Web is a thing in 2021 since the React community has been working on it for a few years; it is in its beta stage at the moment, which is very stable. React Native for Web can be enabled for both Expo and React Native apps. Many well-known companies are using React Native for Web in production, including Twitter, Flipkart, Uber, and The Times.
If your app is based on Expo, then React Native for Web should already be part of the package as Expo SDK version 33, called the Expo Web. However, if your app is based on React Native, then you will need to run the following command to add the React Native for Web library to your project:
yarn add react-native-web
You can download the...