reactHonoStarte4 file matches
reactHonoStarter4 file matches
reactHonoStarter4 file matches
reactHonoExample9 file matches
reactHonoStarter4 file matches
reactHonoStarter4 file matches
reactHonoStarter4 file matches
Playing Around
You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/%7Bresult.originalUrl%7D?q=react&page=8&format=json
For typeahead suggestions, use the /typeahead
endpoint:
https://codesearch.val.run/typeahead?q=react
Returns an array of strings in format "username" or "username/projectName"
Found 21718 results for "react"(7269ms)
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useEffect } from "https://esm.sh/react@18.2.0?deps=react@18.2.0";
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client?deps=react@18.2.0,react-dom@18.2.0";
4import { LoginWithGoogleButton } from "https://esm.town/v/stevekrouse/LoginWithGoogleButton";
5111};
112113const handleKeyPress = (e: React.KeyboardEvent) => {
114if (e.key === 'Enter' && !e.shiftKey) {
115e.preventDefault();
1# ChatGPT Clone with LastLogin Authentication
23A fullstack React + Hono app that lets you chat with ChatGPT, with user authentication and thread history.
45## Features
18โโโ frontend/
19โ โโโ index.html # Main HTML template
20โ โโโ index.tsx # React frontend app
21โโโ README.md
22```
28- โ SQLite schema for threads and messages
29- โ Basic API endpoints for threads CRUD
30- โ Static file serving for React frontend
3132**Frontend Foundation:**
33- โ React app with authentication UI
34- โ Basic layout with sidebar for threads
35- โ Login/logout flow with LoginWithGoogleButton
47## API Endpoints
4849- `GET /` - Main React app
50- `GET /api/threads` - List user's threads
51- `POST /api/threads` - Create new thread