Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattstypa/sillyapp
Silly React Store and Router
https://github.com/mattstypa/sillyapp
Last synced: about 1 month ago
JSON representation
Silly React Store and Router
- Host: GitHub
- URL: https://github.com/mattstypa/sillyapp
- Owner: MattStypa
- License: mit
- Created: 2018-10-15T03:15:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-15T13:19:17.000Z (over 6 years ago)
- Last Synced: 2024-04-25T15:42:17.242Z (9 months ago)
- Language: JavaScript
- Size: 56.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SillyApp
This is combines [SillyStore](https://github.com/MattStypa/sillystore) and [SillyRouter](https://github.com/MattStypa/sillyrouter) into one.
```js
import App from 'sillyapp';const store = {
count: 0,
};import Home from './components/Home.js';
import AboutUser from './components/AboutUser.js';
import NotFound from './component/NotFound.js';const routes = [
{name: 'home', path: '/', component: Home},
{name: 'aboutUser', path: '/user/:userId', component AboutUser},
{name: 404, component: NotFound},
];ReactDOM.render(
,
document.getElementById('root')
);
```