ssr_react_mini_starter
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v61View latest version
Starter App for ssr_react_mini
You need to export four things:
loader- runs on any GET request, on the server. it accepts theRequestand returns the props of your React compnent.action- runs on the server on any non-GET, ie POST, PUT, DELETE, or<form>s submitComponent- your React component. it's initially server-rendered and then client-hydrateddefault- you should mostly leave this line alone
This is framework is bleeding-edge. You'll need to read the code of the framework itself (it's very short) to understand what it's doing.
If you have questions or comments, please comment below on this val! (or any of these vals)
Migrated from folder: Archive/ssr_react_mini_starter
