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
- Host: GitHub
- URL: https://github.com/co2-git/reactors-router
- Owner: co2-git
- Created: 2016-06-25T20:49:22.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-01-11T06:31:09.000Z (over 8 years ago)
- Last Synced: 2025-04-06T12:24:57.461Z (about 1 year ago)
- Topics: reactors, router
- Language: JavaScript
- Homepage:
- Size: 123 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
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.