Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yosh1/react-ionic-practice

This is a react-ionic practice repository.
https://github.com/yosh1/react-ionic-practice

ionic npx react typescript yarn

Last synced: 4 days ago
JSON representation

This is a react-ionic practice repository.

Awesome Lists containing this project

README

        

# React × ionic app (Beta)

---

## How to run?

```
$ yarn i
$ yarn start
```

---

## How to develop?

### package init and install

```
$ npx create-react-app react-ionic-app --typescript
$ cd react-ionic-app

$ yarn add @ionic/react react-router react-router-dom @types/react-router @types/react-router-dom --save
```

### Edit `App.tsx`

```
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';

class App extends Component {
render() {
return (



logo


Edit src/App.tsx and save to reload.



Learn React



);
}
}

export default App;
```

to

```
import React, { Component } from 'react';
import '@ionic/core/css/core.css';
import '@ionic/core/css/ionic.bundle.css';
import {
IonApp,
IonContent,
IonCard,
IonCardHeader,
IonCardTitle,
IonCardSubtitle
} from '@ionic/react';

class App extends Component {
render() {
return (




react with ionic app
Hello World!




);
}
}

export default App;
```