2.0.0-beta1
Pre-release
Pre-release
Installation:
npm install --save preact-router@beta
Possibly Breaking Changes:
- #33: HTML links (
<a href="/..">) withhrefattributes 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
Routerwill be handled bypreact-router, otherwise the normal behavior for an HTML link is preserved.
- You can still use
New Features:
- #34:
route(url)now returnstrueifurlresolved to any routes,falseif 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