example/index.js
function Link({ to, children }) {
  function click(e) {
    e.preventDefault()
    navigate(to)
  }

  return <a href={to} onClick={click}>
    {children}
  </a>
}
function Link({ to, children }) {
  function click(e) {
    e.preventDefault()
    navigate(to)
  }

  return <a href={to} onClick={click}>
    {children}
  </a>
}
function Link ( { to , children } ) { function click ( e ) { e . preventDefault ( ) navigate ( to ) } return < a href = { to } onClick = { click } > { children } < / a > }
note this is just an example, this package does not provide a Link equivalent found in react-router, nor does it provide bindings for tools like Redux. You'll need to wire these up as desired.
note this is just an example this package does not provide a Link equivalent found in react - router nor does it provide bindings for tools like Redux . You ll need to wire these up as desired .