Axios is a widely used HTTP client for making REST API calls. You can use this in React Native to get data from any REST API.
Axios in React Native
Axios is a library that helps you send HTTP requests in React Native apps. It allows mobile devices to communicate with a server, enabling them to send and receive data through API endpoints. This means that when you want to get information from a server or send information to it, Axios makes it easier to do so.
Syntax
// GET Request
axios.get(url, config)
// POST Request
axios.post(url, data, config)
// PUT Request
axios.put(url, data, config)
// DELETE Request
axios.delete(url, config)
// PATCH Request
axios.patch(url, data, config)
Features
- It can make both XMLHttpRequests and HTTP requests.
- It can understand all the requests and responses from an API.
- Axios is promise-based.
- It can transform the response into JSON format.
To make the most of Axios, understanding the flow of asynchronous requests is crucial.
Install Axios in React Native
You can install Axios in your React Native project with either npm or yarn. Open the terminal on your computer and go to your project directory.
Using npm:
npm install axios
Using yarn:
yarn add axios
You can make both GET and POST requests with Axios in React Native:
- The GET request is used to get data from an API.
- The POST request is used to modify the data on the API server.
GET Request
The axios.get() method is used to perform GET requests in Axios with React Native. It takes a base URL to get data. You can specify parameters that you want to pass with the base URL, with params.
If it gets executed successfully, you will get a response. This response will contain data and other information regarding the request. If any error occurs, then the catch statement will catch that error.
If you want something to execute every time, in that case, you can write that under the statement.
Syntax
axios.get('/GeeksforGeeks', {
params: {
articleID: articleID
}
})
.then(function (response) {
console.log(response);
})
.catch(function (error) {
console.log(error);
})
.then(function () {
// always executed
});
POST Request
The axios.post() method is a way to send data to a server using POST requests in React Native. This method is part of the Axios library, which helps you make HTTP requests easily. You can specify parameters that you want to pass with the base URL through an object.
If it gets executed successfully, you will get a response. This response will contain of data and other information regarding the request.
If any error occurs, then the catch statement will catch that error.
axios.post('/GeeksforGeeks', {
articleID: 'articleID',
title: 'Axios in React Native'
})
.then(function (response) {
console.log(response);
})
.catch(function (error) {
console.log(error);
});
Step-by-Step Implementation
Step 1: Create a React Native Project
Now, create a project with the following command.
npx create-expo-app app-name --template
Note: Replace the app-name with your app name for example : react-native-demo-app
Next, you might be asked to choose a template. Select one based on your preference as shown in the image below. I am selecting the blank template because it will generate a minimal app, as clean as an empty canvas in JavaScript.
It completes the project creation and displays a message: “Your Project is ready!” as shown in the image below.
Now go into your project folder, i.e., react-native-demo
cd app-name
Project Structure:

Step 2: Run Application
Start the server by using the following command.
npx expo start
Then, the application will display a QR code.
- For the Android users,
- For the Android Emulator, press “a” as mentioned in the image below.
- For the Physical Device, download the “Expo Go” app from the Play Store. Open the app, and you will see a button labeled “Scan QR Code.” Click that button and scan the QR code; it will automatically build the Android app on your device.
- For iOS users, simply scan the QR code using the Camera app.
- If you’re using a web browser, it will provide a local host link that you can use as mentioned in the image below.
Step 3: Start Coding’
– Import libraries: Import required libraries at the top of the file.
JavaScript // Importing the useState hook from React import { useState } from "react"; // Importing necessary components from React Native import { StyleSheet, // for styling components View, // for creating a container Text, // for displaying text Button // for creating a button } from "react-native"; // Importing axios for making HTTP requests import axios from "axios";
– StyleSheet: Create a StyleSheet to style components like container and advice.
JavaScript // Defining styles for the components const styles = StyleSheet.create({ container: { flex: 1, // Makes the container take up the full screen backgroundColor: "#fff", // Sets the background color to white alignItems: "center", // Centers content horizontally justifyContent: "center", // Centers content vertically }, advice: { fontSize: 20, // Sets the font size for the advice text fontWeight: "bold", // Makes the advice text bold marginHorizontal: 20, // Adds horizontal margin to the advice text }, });
We will make a GET request with Axios in React Native. We will use the Advice Slip API for this example. This API takes id as parameters and provides advice associated with that id.
– getAdvice: This function is to make a GET request and update the state.
JavaScript // Function to fetch advice from the API const getAdvice = () => { axios .get("http://api.adviceslip.com/advice/" + getRandomId(1, 200)) // Fetching advice using a random ID .then((response) => { // Updating the 'advice' state with the fetched advice setAdvice(response.data.slip.advice); }); };
We will declare a function that randomly generates 1 id and we will pass this id in params in Axios GET request.
– getRandomId: This function is to generate a random ID within min and max every time.
JavaScript // Function to generate a random ID between a given range (min and max) const getRandomId = (min, max) => { min = Math.ceil(min); // Ensuring min is rounded up max = Math.floor(max); // Ensuring max is rounded down // Returning a random integer between min and max (inclusive) as a string return (Math.floor(Math.random() * (max - min + 1)) + min).toString(); };
There will be 2 components in our main App.js file: Text and Button. When you press the button, Axios will make a GET request to the advice slip API and fetch one random advice. Later on, we will display this advice on the screen using a Text component.
– Button: This component interact with the user and when user click on it, it will call the getAdvice method.
JavaScript <Button title="Get Advice" onPress={getAdvice} color="green" />
– Text: This component is used to display the response coming from the getAdvice method.
JavaScript <Text style={styles.advice}>{advice}</Text>
– useState: This is used to declare a state variable ‘advice’ to store the advice text and update it.
JavaScript // Declaring a state variable 'advice' to store the advice text const [advice, setAdvice] = useState("");
Now, wrap the Button and Text components with a View component and return from the App component. Also, ensure to export the App.
App.js:
App.js // Importing the useState hook from React import { useState } from "react"; // Importing necessary components from React Native import { StyleSheet, // for styling components View, // for creating a container Text, // for displaying text Button // for creating a button } from "react-native"; // Importing axios for making HTTP requests import axios from "axios"; // Defining the main App component export default function App() { // Declaring a state variable 'advice' to store the advice text const [advice, setAdvice] = useState(""); // Function to generate a random ID between a given range (min and max) const getRandomId = (min, max) => { min = Math.ceil(min); // Ensuring min is rounded up max = Math.floor(max); // Ensuring max is rounded down // Returning a random integer between min and max (inclusive) as a string return (Math.floor(Math.random() * (max - min + 1)) + min).toString(); }; // Function to fetch advice from the API const getAdvice = () => { axios .get("http://api.adviceslip.com/advice/" + getRandomId(1, 200)) // Fetching advice using a random ID .then((response) => { // Updating the 'advice' state with the fetched advice setAdvice(response.data.slip.advice); }); }; // Rendering the UI return ( <View style={styles.container}> {/* Displaying the fetched advice */} <Text style={styles.advice}>{advice}</Text> {/* Button to trigger the getAdvice function */} <Button title="Get Advice" onPress={getAdvice} color="green" /> </View> ); } // Defining styles for the components const styles = StyleSheet.create({ container: { flex: 1, // Makes the container take up the full screen backgroundColor: "#fff", // Sets the background color to white alignItems: "center", // Centers content horizontally justifyContent: "center", // Centers content vertically }, advice: { fontSize: 20, // Sets the font size for the advice text fontWeight: "bold", // Makes the advice text bold marginHorizontal: 20, // Adds horizontal margin to the advice text }, });
Output
Summary
Axios is a promise based http client used in React native to communicate to the server. It is used to send the http request like get and post and also send and receive the data with the help of API endpoints.
Similar Reads
React Native Tutorial
React Native is a framework developed by Facebook for creating native-style applications for Android & iOS under one common language, i.e. JavaScript. Initially, Facebook only developed React Native to support iOS. However, with its recent support of the Android operating system, the library can
5 min read
React Native Basics
Introduction to React Native
If you want to build mobile apps for both Android and iOS. What should you learn? The individual native languages for each app i.e, Java for Android and Swift/Objective-C for iOS?, Actually NO. Native Android and iOS development are quite different and can be expensive â first, the language itself i
3 min read
What are the steps to create first React Native App ?
React Native is an open-source UI software framework created by Meta Platforms, Inc. It is used to develop applications for Android, Android TV, iOS, etc. Weâre always looking for shorter development cycles, quicker time to deployment, and better app performance. And there are so many hybrid mobile
4 min read
How React Native works
React Native is a popular framework for building mobile applications using JavaScript and React. It allows developers to write code once in JavaScript and run it on both Android and iOS devices, bridging the gap between web and native mobile development. In this article, weâll explore the main compo
5 min read
What is a bridge in React Native ?
A React Native app comprises two sides as given below. The JavaScript SideThe Native SideThe Native Side should be Java or Kotlin for Android and Swift or Objective-C for iOS. The huge reason for the popularity of React Native is that a bridge can be created between the JavaScript code and Native la
7 min read
How React Native is different from ReactJS ?
In this article, we will learn about how React Native is different from ReactJS. Both are popular JavaScript libraries. ReactJS is primarily used for building user interfaces on the web, while React Native extends its capabilities to mobile app development. React JSIt is a JavaScript library that su
5 min read
React Native Debugging
Debugging is very important for building applications and removing errors. A good knowledge of debugging techniques allows for the faster and efficient development of software. Here we are going to discuss a few debugging techniques in React Native. We will be using expo-cli to develop, run, and deb
4 min read
React Native Components
How to import components in React Native ?
React Native is a framework developed by Facebook for creating native-style applications for Android & iOS under one common language, i.e. JavaScript. Initially, Facebook only developed React Native to support iOS. However, with its recent support of the Android operating system, the library can
5 min read
React Native ListView Component
The ListView Component is an inbuilt React Native view component that displays a list of items in a vertically scrollable list. It requires a ListView.DataSource API to populate a simple array of data blobs and instantiate the ListView component with a data source and a renderRow callback. The major
4 min read
React Native ScrollView Component
The ScrollView Component is an inbuilt react-native component that serves as a generic scrollable container, with the ability to scroll child components and views inside it. It provides the scroll functionality in both directions- vertical and horizontal (Default: vertical). It is essential to provi
9 min read
React Native Tab Navigation Component
In this article, we are going to see how to implement Tab Navigation in react-native. For this, we are going to use createBottomTabNavigator component. It is basically used for navigation from one page to another. These days mobile apps are made up of a single screen, so create various navigation co
3 min read
React Native Drawer Navigation Component
In this article, weâre going to explore how to implement Drawer Navigation in a React Native application. We'll be using the createDrawerNavigator component, which serves as a convenient UI panel for displaying your navigation menu. By default, this panel is hidden, but it gracefully slides into vie
3 min read
React Native ActivityIndicator Component
In this article, weâre going to explore how to create an ActivityIndicator in React Native. If youâve ever wanted to show a loading spinner while your app is processing something, the ActivityIndicator component is just what you need. Itâs designed to display a circular loading indicator that lets y
2 min read
Dumb Components in React Native
In this article, we are going to learn about Dumb components in React Native. The dumb component is one of the categories of React Components, so before diving into the dumb component details. Let's know a little bit about components. A Component is one of the core building blocks of React. The comp
5 min read
What is the TouchableHighlight in react native ?
TouchableHighlight is a component that is used to provide a wrapper to Views to make them respond correctly to touch-based input. On press down the TouchableHighlight component has its opacity decreased which allows the underlying View or other component's style to get highlighted. This component mu
4 min read
React Native FlatList Component
FlatList is a React Native component that is a scrolling list that shows changing information while keeping the same look. It's great for long lists where the number of items can change. Instead of loading all items simultaneously, this component only shows what you can see on the screen. This makes
4 min read
React Native AsyncStorage Component
Here is a guide on how to use AsyncStorage in React Native. We will use the AsyncStorage component. AsyncStorage is an unencrypted, asynchronous, persistent key-value storage system that is accessible globally throughout the app. SyntaxAsyncStorage.method();Methods in AsyncStorageMethod Description
6 min read
React Native Button Component
The following approach covers how to use the Button in react-native. For this, we are going to use the Button component. It is basically a clickable component that is used to perform some action when clicked by the user. Let's watch a demo video of what we are going to develop. Demo Video: Syntax
6 min read
React Native UI Elements
How to style React Native Application ?
In this article, we'll learn how to style React Native applications. There are two major ways to style your React Native Application. Table of Content Style PropsUsing StyleSheetStyle Props ExampleUsing StyleSheet ExampleStyle PropsTo style an element with the style props, the value must be a JavaSc
5 min read
How to create a basic button in React Native ?
In this article, we will learn how to create a basic button in React Native. To build a React Native app, we will use the Expo CLI, which provides a smoother experience for running your applications. ExpoIt is a framework and a platform for universal React applications. It is a set of tools and serv
5 min read
How to Implement Radio Button In React Native ?
In this article, we will learn to implement a Radio Button in React Native. A radio button signifies a graphical user interface element enabling individuals to make an exclusive seÂlection among multiple alternativeÂs. React Native is a popular platform for creating native mobile apps for iOS and A
11 min read
How to create a table in react-native ?
React native is a framework developed by Facebook for creating native-style apps for iOS & Android under one common language, JavaScript. Initially, Facebook only developed React Native to support iOS. However, with its recent support of the Android operating system, the library can now render m
2 min read
How to add SearchBar in React Native ?
In this article, we'll add search functionality in React-Native. This can be regarded as a continuation of the React native flatlist component. In the article above, we created a flatlist using the Flatlist component. Let's make it searchable using the SearchBar component. To add a SearchBar to your
13 min read
React Native Animated Fade In Fade Out Effect
In this article, we will dwell on the implementation of fadeÂ-in and fade-out effects in ReÂact Native using the Animated moduleÂ. The fadeÂ-in and fade-out effect, a timeÂless animation technique utilizeÂd to seamlessly transition an eleÂment from invisibility to visibility and vice versa, holds a
8 min read
How to set Background Image in react-native ?
React Native is a framework developed by Facebook for creating native-style apps for iOS & Android under one common language, JavaScript. Initially, Facebook only developed React Native to support iOS. However, with its recent support of the Android operating system, the library can now render m
2 min read
How to create custom FAB(Floating Action Button) in React Native?
React Native doesn't come with any FAB component built-in. A floating action button (FAB) is used whenever you want to display a button on the top of everything. If you have used ScrollView and the user can scroll up and down, this FAB button will always stay at the same position and doesn't move wi
3 min read
How to add a Progress Bar in react-native using react-native-paper library ?
React native is a framework developed by Facebook for creating native-style apps for iOS & Android under one common language, JavaScript. Initially, Facebook only developed React Native to support iOS. However, with its recent support of the Android operating system, the library can now render m
3 min read
How to create Avatar in react-native ?
React-native is a framework developed by Facebook for creating native-style apps for iOS & Android under one common language, JavaScript. Initially, Facebook only developed React Native to support iOS. However, with its recent support of the Android operating system, the library can now render m
2 min read
React Native Questions
Find what caused Possible unhandled promise rejection in React Native ?
In this article, we will check out the `Possible Unhandled Promise Rejection` error in react native. Installation: Follow the steps below to create your react-native project Step 1: Open your terminal and run the below command. npx create-expo-app project-nameStep 2: Now go into the created folder a
4 min read
Axios in React Native
Axios is a widely used HTTP client for making REST API calls. You can use this in React Native to get data from any REST API. Axios in React NativeAxios is a library that helps you send HTTP requests in React Native apps. It allows mobile devices to communicate with a server, enabling them to send a
8 min read
How to fetch data from a local JSON file in React Native ?
Fetching JSON (JavaScript Object Notation) data in React Native from Local (E.g. IOS/Android storage) is different from fetching JSON data from a server (using Fetch or Axios). It requires Storage permission for APP and a Library to provide Native filesystem access. Implementation: Now letâs start w
4 min read
How to center a View component on screen ?
The View Component is the basic building block for creating the user interface. It can map directly to the native view of different platforms, like UIView, <div>, android.view, etc. The View component can consist of nested View components as well as other native components (children). Approach
3 min read
How to Add Icons at the Bottom of Tab Navigation in React Native ?
Adding Icons at the Bottom of Tab Navigation in React Native is a fairly easy task. In this article, we will implement a basic application to learn to use icons in our tab navigation. For this, we first need to set up the application and install some packages. Implementation: Now letâs start with th
3 min read
How to pass value between Screens in React Native ?
With React Navigation, we can also pass values or parameters between screens in React Native. We will create a simple stack navigator with 2 screens and pass values from one screen to another. Letâs watch a short video to see what we are going to create. Demo Video Step-by-Step ImplementationStep 1:
7 min read
How to make a Post request from frontend in react-native ?
The POST method is used to send data to the server to create a new resource or modify an existing resource on the server. We cannot make a POST request by using a web browser, as web browsers only directly support GET requests. But what if we want to develop an application where we need to add some
9 min read
How to add GIFs in react-native ?
React-native is a cross-platform mobile application development tool. It is one of the frameworks built on top of Javascript. Now let's come to the point. We usually use .jpeg or .png images because we are more friendly to them. But what if you want to add GIF support to your react native project. T
2 min read
How to Implement Form Validation in React Native ?
React Native is a JavaScript framework for cross-platform mobile app development. Expo CLI simplifies React Native development with a streamlined process and helpful tools. In this article, we'll see how to implement form validation in react native. Form validation ensures the validity of user input
4 min read
How many threads run in a React Native app ?
If you want to be a react native developer and have mastered creating basic android and ios apps, then one of the most important things is to learn the execution process of threads. If you understand how a react native app executes and how many threads it uses that will help you build more efficient
3 min read
How to add Table in React Native ?
React Native is an open-source UI software framework created by Meta Platforms, Inc. It is used to develop applications for Android, Android TV, iOS, macOS, tvOS, Web, Windows, and UWP by enabling developers to use the React framework along with native platform capabilities. In this article, we will
2 min read
How to add a Menu in react-native using Material Design ?
React native is a framework developed by Facebook for creating native-style apps for iOS & Android under one common language, JavaScript. Initially, Facebook only developed React Native to support iOS. However, with its recent support of the Android operating system, the library can now render m
3 min read
What are props in React Native ?
Props are used to provide properties to the components using which they can be modified and customized. These properties are passed to the components when the component is created. Props are used in both user-defined and default components to extend their functionality. These props are immutable and
5 min read
How to check the version of React native ?
React Native is a mobile app framework to build natively-rendered apps based on JavaScript. To know the version of React Native (RN), we can use some simple ways. In this article, we will see four easy ways to find the react native version: Using TerminalUsing npxUsing package.jsonUsing the info opt
2 min read
How to perform logging in React Native ?
In this article, we will learn about logging in React Native. LoggingIt is a quick and easy way to debug your application in development phase. It helps to get an insight into the functioning of the application. To perform logging, we can simply use the console.log() statements to log the required i
4 min read
How to Upload and Preview an Image in React Native ?
Image uploading and previewing are widespread in mobile apps. With the Expo ImagePicker package, React Native makes this work easier. Uploading and previewing photographs is a common feature in Android and iOS applications, especially in the user profile section. This feature allows users to submit
4 min read
How to Add Phone Number Input in React Native ?
React Native is a JavaScript framework for cross-platform mobile app development. In this article, we'll see how to add a phone number input field in a React Native app using Expo CLI. âAdding a phone number input field in React Native is helpful for collecting user phone numbers during registration
3 min read
How to Get Window Width and Height In React Native ?
In this article, we'll explore two different approaches to obtaining the screen width and height in a React Native application. ScreeÂn dimensions, including width and height, play a vital role in deÂsigning user interfaces that adapt seÂamlessly to different deÂvices and orientations. By understand
3 min read
How to check Platform and Device Details in React Native ?
React Native is an open-source UI software framework created by Meta Platforms, Inc. It is used to develop applications for Android, Android TV, iOS, macOS, tvOS, Web, Windows, and UWP by enabling developers to use the React framework along with native platform capabilities. In this article, we will
2 min read
Top React Native Apps to Build in 2025
Top React Native Apps to Build in 2025 is a popular framework for building high-performance mobile apps using JavaScript and React. It allows developers to create apps for both iOS and Android with a single codebase, saving time and resources. React Native, developed by Facebook. Initially, for iOS,
10 min read
How to Create ToDo App using React Native ?
In this article, we'll see how to create a ToDo app using React Native. An ideal illustration of a basic application that can be developed with React Native is a ToDo app. This app enables users to generate, modify, and remove tasks, assisting them in maintaining organization and concentration. Reac
4 min read
React Native Projects
How to Generate Random Numbers in React Native ?
Generating random numbers is a fundamental aspect of React Native development. It enables various functionalities like generating game elements, creating unique identifiers, and implementing randomized UI components. In this article, we are going to see how we can generate a random number by using R
3 min read
Build a Calculator using React Native
React Native is a well-known technology for developing mobile apps that can run across many platforms. It enables the creation of native mobile apps for iOS and Android from a single codebase. React Native makes it simple to construct vibrant, engaging, and high-performing mobile apps. In this tutor
6 min read
Create a Task Manager App using React-Native
In this article, we'll walk you through the process of building a basic Task Manager app using React Native. The application enables users to effortlessly create, edit, complete/incomplete, and delete tasks, providing an uncomplicated yet impactful introduction to ReÂact Native's mobile app develop
7 min read
How to Create Emoji Picker in React Native ?
React Native is a popular cross-platform framework for mobile app development. Emojis have become common in modern applications, providing personalization and enhancing user engagement. In this article, we'll see how we can add an emoji picker to a React Native application. React Native doesn't have
3 min read
Create a Stop Watch using React Native
React Native simplifies cross-platform app development for iOS, Android, and the web using a single codebase. Install Node.js, Expo CLI, and leverage Expo's seamless experience for creating high-performance apps. Stopwatches servetime as vital tools for accurately measuring time intervals. By the c
4 min read
Create an OTP Generator and Validator App using React-Native
One-time passwords (OTPs) have become a popular choice for enhancing the security of various online services and applications. In this article, we'll explore how to create an OTP Generator and Validator App using React Native, a popular framework for building cross-platform mobile applications. Prev
4 min read
Create a Rock Paper Scissors Game using React-Native
Rock, Paper, Scissors is a timeless game that has entertained people of all ages for generations. In this article, we will walk you through the process of creating a Rock Paper Scissors mobile game using React Native. You'll learn how to build a simple yet engaging game that can be played on both An
3 min read
Create a Number Guessing App using React-Native
The Number Guessing App is a simple mobile game where the user tries to guess a random number generated by the app. The app provides feedback to the user, indicating whether their guess is too high or too low, and keeps track of the number of attempts it takes to guess the correct number. In this ar
3 min read
Create a BMI Calculator App using React-Native
In this article, we will create a BMI (Body Mass Index) calculator using React Native. A BMI calculator serves as a valuable and straightforward tool for estimating body fat by considering height and weight measurements.A BMI Calculator App built with React Native allows users to input their age, he
4 min read
Create a GPA Calculator using React Native
A GPA calculator proves to be a useful tool for students who want to monitor their academic progress. In this article, we will build a GPA calculator using React Native, a popular framework for building mobile applications. Preview Image PrerequisitesIntroduction to React NativeReact Native Componen
5 min read
Create a Password Manager using React-Native
This article will demonstrate how to create a Password Manager Application using React-Native. To assist users in securely storing and managing their passwords, we will develop a Password Manager mobile application using React Native for this project. The application will provide functionalities su
6 min read
Create Jokes Generator App using React-Native
In this article, we are going to build a jokes generator app using react native. React Native enables you to master the designing an elegant and dynamic useÂr interface while eÂffortlessly retrieving jokeÂs from external APIs. Let's take a look at how our completed project will look Prerequisites /
3 min read
Build a Dictionary App Using React Native
In this article, we are going to implement a Dictionary app using React Native. The app allows users to effortlessly search for word meanings, access definitions, listen to pronunciations, and examine example sentences. Preview of final output: Let us look at what the final output will look like. Pr
5 min read
Create a Blog App using React-Native
This article shows how to create a basic blog app using react native. This app contains functionalities such as adding a blog and a delete button to remove the blogs using react native. The user can enter content with a title and then click on 'Add New Post' to create a new blog post Preview of fina
4 min read
Create a Text Editor App using React-Native
In this article, we are going to implement a text editor app using React Native. It will contain multiple text formatting functionalities like bold, italic, underline, etc. We will implement Editor with a library called "react-native-pell-rich-editor." Preview of final output: Let us have a look at
3 min read
Create a Password Validator using React-Native
In this article we are going to implement a Password Validator using React Native. The Password validation app in React Native is a simple application that is used to check the strength of a password. Passwords protect your personal and sensitive data, such as financial information, medical records,
3 min read
Create a Currency Converter using React-Native
In this article, we will build a currency converter using react native. This app serves as a valuable tool for travelers, business professionals, and anyone who frequently deals with international currencies. It enables users to effortleÂssly convert one currency to another. Preview of final output:
4 min read