kt3k / packup

📦 Zero-config web application packager for Deno
https://packup.deno.dev/
MIT License
328 stars 18 forks source link

ssr based on spa and backup #23

Open elycheikhsmail opened 3 years ago

elycheikhsmail commented 3 years ago

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 commented 3 years ago

Thank you for the feedback.

Do you suggest any specific feature to add to packup?

elycheikhsmail commented 3 years ago

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.