preactjs / preact-router

:earth_americas: URL router for Preact.
http://npm.im/preact-router
MIT License
1.02k stars 155 forks source link

Lazy loading with react lazy instead of preact-async-route #372

Open jose-donato opened 4 years ago

jose-donato commented 4 years ago

Updated README.md to perform lazy loading with react lazy function (with examples) instead of the deprecated package preact-async-route.

bestwestern commented 4 years ago

I don't think preact-cli is using AsyncRoute? (perhaps the recommended "code snippet" could copy from preact-cli)

bestwestern commented 4 years ago

Is preact-async-route still the recommended way to do it?

wahidshafique commented 3 years ago

Is preact-async-route still the recommended way to do it?

Wonder the same thing...