ionic-react
Installation
SKILL.md
Ionic React
Develop Ionic Framework apps with React — project structure, IonReactRouter, React-specific components, lifecycle hooks, state management, and best practices.
Prerequisites
- Ionic Framework 9 with
@ionic/react. This is the current major version, and all examples use it. Ionic 7 and 8 projects differ in routing, see the table below. - React 18 or 19 and React Router 6 for Ionic 9. React Router must be 6.4.0 or later in the 6 line. React Router 7 is not supported.
- TypeScript 5.4 or later for Ionic 9, if the project uses TypeScript.
- Node.js and npm installed.
- For iOS: Xcode installed.
- For Android: Android Studio installed.
Differences by Ionic Version
Read the major version of @ionic/react in package.json before writing code.