mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
feature(react): add demo of react
This commit is contained in:
24
packages/demos/react/src/App.js
Normal file
24
packages/demos/react/src/App.js
Normal file
@ -0,0 +1,24 @@
|
||||
import React, { Component } from 'react';
|
||||
import logo from './logo.svg';
|
||||
import './App.css';
|
||||
|
||||
import PageOne from './pages/PageOne';
|
||||
|
||||
import { Delegate, wc } from '@ionic/react';
|
||||
|
||||
class App extends Component {
|
||||
render() {
|
||||
return (
|
||||
<ion-app>
|
||||
<ion-nav-controller ref={wc({}, {
|
||||
delegate: Delegate
|
||||
})}></ion-nav-controller>
|
||||
<ion-nav ref={wc({},{
|
||||
root: PageOne
|
||||
})}></ion-nav>
|
||||
</ion-app>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default App;
|
||||
Reference in New Issue
Block a user