~repos /edge-city
GIT_CONFIG_PARAMETERS="'http.version=HTTP/1.1'" git clone
https://git.pyrossh.dev/edge-city/.git
edge-city
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
example/src/pages/todos/TodoList.jsx
import React from "react";import { useQuery } from "edge-city/data";import { getTodos } from "@/services/todos.service";import Spinner from "@/components/Spinner/Spinner";import Todo from "./Todo";import "./page.css";
export default function TodoList({ isMutating }) { const { data, isRefetching } = useQuery("todos", () => getTodos()); return ( <> {isMutating || isRefetching ? <Spinner /> : null} <ul> {data.map((item) => ( <Todo key={item.id} item={item} /> ))} </ul> </> );}