Back to packages list

Vals using react-dom

Description from the NPM package:
React package for working with the DOM.
keenanzucker avatar
keenanzucker
stagingdailyschedule
HTTP
@jsxImportSource npm:react
0
stevekrouse avatar
stevekrouse
dateme_router_hydrated
Script
Forked from stevekrouse/dateme_router
0
stevekrouse avatar
stevekrouse
dateme_react_hydrated
HTTP
Forked from stevekrouse/dateme_react_client
1
atlted avatar
atlted
greenSilkworm
HTTP
@jsxImportSource npm:react
0
stevekrouse avatar
stevekrouse
valwriter_react_clientside
HTTP
Forked from stevekrouse/valwriter
0
stevekrouse avatar
stevekrouse
dateme_router
Script
@jsxImportSource https://esm.sh/react@18.2.0
0
adrianlee avatar
adrianlee
redPrimate
HTTP
Intro
0
tmcw avatar
tmcw
reacttldrawclient
Script
Forked from tfayyaz/reacttldrawclient
0
iamseeley avatar
iamseeley
reacttldrawclient
Script
Forked from tfayyaz/reacttldrawclient
0
tfayyaz avatar
tfayyaz
tomatoSpider
Script
Forked from stevekrouse/react_http
1
stevekrouse avatar
stevekrouse
hono_react_ssr
Script
Forked from stevekrouse/ssr_react_mini
0
rauchg avatar
rauchg
web
HTTP
@jsxImportSource npm:react
2
gueejla avatar
gueejla
helloworld
HTTP
Hello val town!
0
kirineko avatar
kirineko
orangeHello
HTTP
@jsxImportSource npm:react
0
tfayyaz avatar
tfayyaz
react_http
Script
Forked from stevekrouse/react_http
0
jxnblk avatar
jxnblk
resrv
Script
React SSR and client-side hydration for Val Town For streaming responses use ReactStream Usage /** @jsxImportSource https://esm.sh/react */ import resrv, { React } from "https://esm.town/v/jxnblk/resrv"; function App() { const [count, setCount] = React.useState(0); return ( <div> <h1>Resrv</h1> <p>React SSR with client-side hydration in Val Town</p> <pre>{count}</pre> <button onClick={() => setCount(count - 1)}>-</button> <button onClick={() => setCount(count + 1)}>+</button> </div> ); } export default resrv(App, import.meta.url); Live example React requires matching versions for SSR and hydration. Import React from https://esm.town/v/jxnblk/resrv to ensure your component uses the same version as this library (currently react@18.3.1). HTML Root Hydration To render a component that includes a <head> and <body> tag, pass root: true to the third options argument: function App ({ script }) { return ( <body> <h1>Hello</h1> {script} </body> ); } export default resrv(App, import.meta.url, { root: true }); Inspired by https://www.val.town/v/stevekrouse/react_http
1