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

https://github.com/co2-git/reactors-router

Router for reactors
https://github.com/co2-git/reactors-router

reactors router

Last synced: 5 months ago
JSON representation

Router for reactors

Awesome Lists containing this project

README

          

reactors-router
===

Router for the [Reactors](https://github.com/co2-git/reactors) framework.

Reactors is a framework based on React to build hybrid apps that run web, mobile and desktop.

# Install

```bash
yarn add react reactors reactors-router
```

# Usage

```jsx
import React from 'react';
import Router from 'reactors-router';
import {View, Text} from 'reactors';

export default function App() {
return (



Page A
Router.get('main').go('page-b')}>Go to page B




Page B
Router.get('main').go('page-a')}>Go to page A



);
}
```

You can have as many routers as you want (included nested), provided you give them a name.