Introduction
In this article, we are going to learn about Ionic React and how to create an application using Ionic React step by step.
What is Ionic React?
Recently the Ionic company introduced a new open source library called Ionic React that helps to build Android applications as well as iOS, desktop and the web as a Progressive Web App. This library is a web component based library. Version 4.11 is the first official version of Ionic React.
In the past, Ionic basically works with Angular technology but now they also supprt React as well. In look and feel, the style of the Ionic React component is especially great on Native apps as well as desktop apps.
Ionic React vs React Native
Ionic React
- Helps to build hybrid mobile applications as well as to build desktop applications.
- It allows using web technology like HTML, CSS, and JavaScript.
- Performance is much less as compared to React Native.
- Uses Cordova plugins to build an Application.
- Developed by Drifty.co.
React Native
- Helps to build cross platform mobile apps natively.
- Uses React and JavaScript to build an application but at runtime it renders Native UI element.
- Better application performance.
- Has its own API to build an Application.
- Developed by Facebook.
- Instagram, UberEats, Myntra are some popular brands which uses React Native
Getting Started with First Ionic React App
Before starting with Ionic React app, make ensure that your system has installed following configuration
Step 1
Install Ionic CLI by using below command (Open command prompt and install)
- npm i -g ionic

Step 2 - Create a project
Create a folder where we are actually placing our project
Go to this folder directory
Run the below command to create an application
- ionic start my-first-app

It's very interesting to see here, CLI is asking for "Select JavaScript framework to use your new app". You have to select React framework to create Ionic React App using keyboard arrow key and then press enter button.

Once you press the enter button, CLI will ask "which starter template you would like to use in your project." like the below picture.

You can select any one option from the above. In this case, I am going to create "A blank starter project". So, for that, I have selected first blank template option for the project and press enter button. Now, the CLI will create an application and install all the dependencies (files required for the project).
Step 3 - Run Application
- cd my-first-app
- ionic serve




Join the conversation! Your thoughts help the community grow.