-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Routing like NextJS #331
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's a popular framework NextJS, it's also a web dev server to making static web applications (so in production you get just statics), but it allows you to use quite cool routing system where file tree translates into actual routes in browser, while bringing performance of a Single Page Application (because browser doesn't actually load a whole page, like in 2008, but loads little json files related to a page, and replaces the content on fly, - like in a typical SPA, but routes aren't stored in a single file like in
react-router
, and file system is used for that, - which is much more convenient):But unfortunatelly NextJS doesn't allow to import
.as
files directly, so I'd like to use Zwitterion with NextJS actually, - so I can easily import AssemblyScript from my components (instead of having some build pipeline AssemblyScript -> WASM), yet I can have this precious routing system... But it seems it's not so easily possible.Alternatively, it would be cool to have exact same way to handle routes like NextJS, though not using NextJS directly (maybe use a library that they use for handling routes???)
If anyone tried to tie it both together and resulted into something working, please let me know!
The text was updated successfully, but these errors were encountered: