~repos /edge-city

#react#js#ssr

git clone https://pyrossh.dev/repos/edge-city.git
Discussions: https://groups.google.com/g/rust-embed-devs

edge-city is a next level meta-framework for react that runs only on edge runtimes


e785cf44 pyrossh

2 years ago
Fix more warnings
example/src/pages/todos/page.jsx CHANGED
@@ -34,7 +34,7 @@ export default function Page() {
34
34
  <p className="subtitle">Share this page to collaborate with others.</p>
35
35
  <form onSubmit={handleSubmit(mutate)}>
36
36
  <TextField isRequired isReadOnly={isMutating} aria-label="add-todo">
37
- <Input {...register("text")} placeholder="Add a todo item" />
37
+ <Input id="text" aria-labelledby="text" aria-describedby="text" {...register("text")} placeholder="Add a todo item" />
38
38
  {err?.text && <p>{err.text._errors[0]}</p>}
39
39
  </TextField>
40
40
  <Button className="add-button" type="submit" isDisabled={isMutating}>
renderPage.js CHANGED
@@ -150,7 +150,7 @@ const renderPage = async (Page, App, req) => {
150
150
  injectOnEnd: () => {
151
151
  return ''
152
152
  + `<script>globalThis._EDGE_DATA_ = ${JSON.stringify(globalThis._EDGE_DATA_)};</script>`
153
- + `<script type="module" src="/js${jsScript}.js?hydrate=true" defer></script>`
153
+ + `<script type="module" src="/js${jsScript}.js?hydrate=true"></script>`
154
154
  }
155
155
  });
156
156
  return new Response(stream, {