Skip to content
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

ssr based on spa and backup #23

Open
elycheikhsmail opened this issue Sep 23, 2021 · 2 comments
Open

ssr based on spa and backup #23

elycheikhsmail opened this issue Sep 23, 2021 · 2 comments

Comments

@elycheikhsmail
Copy link

elycheikhsmail commented Sep 23, 2021

we can build spa using react react-router and packup. if is possible to create function named "render" that take pathname as input and return html string, we can use std/http (or oak ...) to read pathname in the incoming request then call render function and return html response.
render function will be generated based on router at build time.
if this possible to generate this "render" we can build universal app on top of spa and packup in easy way.

@kt3k
Copy link
Owner

kt3k commented Sep 24, 2021

Thank you for the feedback.

Do you suggest any specific feature to add to packup?

@elycheikhsmail
Copy link
Author

ssr, I know packup focusing on spa but think the brindge between is not big.
already we have renderToSring in react router is possible to use it with packup ?
and suggess to create x/packup-react and x/packup-react-router verion of react and react-router (like in esm.sh ) build for deno users in mind and ts support.
we can discus more about puckup-ssr in right time
thank you for your great job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants