# f7react

> Base Framework 7 & ReactJS composite

Latest version **1.0.0** (published 2016-05-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install f7react
pnpm add f7react
yarn add f7react
bun add f7react
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-05-12 |
| First published | 2016-05-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | G.A. Alex |
| Maintainers | ga-alex |
| Keywords | F7ReactJS, ReactJSFramework7, F7ReactComposit |

## Links

- npm: https://www.npmjs.com/package/f7react
- Repository: https://github.com/bumkaka/F7ReactComposit
- Homepage: https://github.com/bumkaka/F7ReactComposit#readme
- Issues: https://github.com/bumkaka/F7ReactComposit/issues
- npm.io page: https://npm.io/package/f7react

## Recent versions

- 1.0.0 (latest) — 2016-05-12

## README

# Start

- create index.js
- put in
```javascript
var   App = new F7ReactComposite({});
App.set({
    ajax: {
        baseURL: 'http://alerts.dev.rexsoftproduction.com/',
        timeout: 4000,
    },
    notify:{
        timeout: 3000
    },
    components: Components,
});
App.initialize();
```
`Components` - object (list) of ReactJS components, needs to parse pages.
```
Components = {
    Form: Form,
    ...
}
```


# USE

App.pageShow - open page by `name`
```javascript
App.pageShow({
    name: 'index',
    reload: true, //replace current page, back button will not work,  true - default
    animatePages: false //show new page with animation, false - defaul
});
```


# Events

```javascript
App.on('pageShow',function( pageName ){
    if (pageName != 'login' && !user.id ) {
        App.pageShow({
            name: 'login',
            reload: false, //replace
            animatePages: false //without animation
        });
    }
});
```
```javascript
App.on('pageShow.dashboard',function( pageName ){
    Orders.fetch();
});
```

---
_Source: https://npm.io/package/f7react · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
