Skip to content

WADE-OSS/nitron-router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

nitron-router

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'));

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published