2.0.0-beta1
Pre-release
Pre-release
Installation:
npm install --save preact-router@beta
Possibly Breaking Changes:
- #33: HTML links (
<a href="/..">
) withhref
attributes beginning with/
are now automatically wired up to routers.- You can still use
<Link>
, but it is no longer needed. - Links that match routes for any
Router
will be handled bypreact-router
, otherwise the normal behavior for an HTML link is preserved.
- You can still use
New Features:
- #34:
route(url)
now returnstrue
ifurl
resolved to any routes,false
if nothing matched (for all routers)- Default routes always match, so
route()
will return true if you're using them.
- Default routes always match, so
Other:
- Build migrated to Babel 6