アプリのリアクトコンポーネント
アプリのリアクトコンポーネントは、すべてのFramework7コアの初期化が行われ、すべてのメインのFramework7パラメーターを渡す、メインのFramework7アプリコンポーネントです。
アプリコンポーネント
次のようなコンポーネントが含まれています
アプリ
アプリのプロパティ
アプリ
コンポーネントは、コンポーネントプロパティとしてすべてのアプリパラメーターを受け取ります。
例
import AboutPage from './about.jsx';
import ServicesPage from './services.jsx';
const f7params = {
name: 'My App',
// routes
routes: [
{
path: '/about/',
component: AboutPage,
},
{
path: '/services/',
component: ServicesPage,
},
],
// ... other params
}
export default () => (
<App {...f7params}>
...
</App>
);