nitron.component('home',{
template:`
<h1>This is Home!</h1>
`
});
nitron.component('example',{
template:`
<h1>This is Example page!</h1>
`
});
const App = `
<Link to="/">Home</Link>
<Link to="/example">Example</Link>
<div>
<Router path="/" el="<Home/>" />
<Router path="/example" el="<Example />" />
</div>
`
nitronDOM.render(App,document.getElementById('root'));
-
Notifications
You must be signed in to change notification settings - Fork 0
License
WADE-OSS/nitron-router
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description or website provided.
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published