Skip to content

MattStypa/sillyapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SillyApp

This is combines SillyStore and SillyRouter into one.

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(
  <App store={store} routes={routes}/>,
  document.getElementById('root')
);

About

Silly React Store and Router

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published