Val Town Code SearchReturn to Val Town

API Access

You can access search results via JSON API by adding format=json to your query:

https://codesearch.val.run/image-url.jpg%20%22Optional%20title%22?q=react&page=129&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 11150 results for "react"(702ms)

yyyProductList.tsx3 matches

@seoxoโ€ขUpdated 5 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React from "https://esm.sh/react@18.2.0";
3import { Product } from "../../shared/types";
4
8}
9
10const ProductList: React.FC<ProductListProps> = ({ products, onProductSelect }) => {
11 if (products.length === 0) {
12 return (

yyyHeader.tsx3 matches

@seoxoโ€ขUpdated 5 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React from "https://esm.sh/react@18.2.0";
3
4interface HeaderProps {
9}
10
11const Header: React.FC<HeaderProps> = ({
12 cartItemCount,
13 onCartClick,

yyyApp.tsx3 matches

@seoxoโ€ขUpdated 5 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useEffect } from "https://esm.sh/react@18.2.0";
3import { Product, Cart, CartItem } from "../../shared/types";
4import ProductList from "./ProductList";
17}
18
19const App: React.FC<AppProps> = ({ initialProducts, projectInfo }) => {
20 const [products, setProducts] = useState<Product[]>(initialProducts);
21 const [selectedProduct, setSelectedProduct] = useState<Product | null>(null);

yyyindex.tsx5 matches

@seoxoโ€ขUpdated 5 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React from "https://esm.sh/react@18.2.0";
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
4import App from "./components/App";
5import { InitialData } from "../shared/types";
24const root = createRoot(document.getElementById("app")!);
25root.render(
26 <React.StrictMode>
27 <App
28 initialProducts={initialData.products}
29 projectInfo={initialData.projectInfo}
30 />
31 </React.StrictMode>
32);

yyyindex.html1 match

@seoxoโ€ขUpdated 5 days ago
19 <div id="app" class="min-h-screen flex flex-col"></div>
20
21 <!-- React app entry point -->
22 <script type="module" src="/frontend/index.tsx"></script>
23</body>

yyyREADME.md2 matches

@seoxoโ€ขUpdated 5 days ago
11โ”‚ โ””โ”€โ”€ routes/ # API route handlers
12โ”œโ”€โ”€ frontend/
13โ”‚ โ”œโ”€โ”€ components/ # React components
14โ”‚ โ”œโ”€โ”€ index.html # Main HTML template
15โ”‚ โ”œโ”€โ”€ index.tsx # Frontend entry point
30
31- Backend: Hono framework on Val Town
32- Frontend: React with Tailwind CSS
33- Data: Shopify API integration
34- Deployment: Val Town HTTP trigger

HTOCHeader.tsx2 matches

@homestocompareโ€ขUpdated 5 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React from "https://esm.sh/react@18.2.0";
3
4export default function Header() {

HTOCApp.tsx2 matches

@homestocompareโ€ขUpdated 5 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useEffect } from "https://esm.sh/react@18.2.0";
3import { Property, PropertyFilters, ProjectInfo } from "../../shared/types.ts";
4import Header from "./Header.tsx";

HTOCindex.tsx5 matches

@homestocompareโ€ขUpdated 5 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React from "https://esm.sh/react@18.2.0";
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
4import App from "./components/App.tsx";
5
16const root = createRoot(document.getElementById("app")!);
17root.render(
18 <React.StrictMode>
19 <App initialData={window.__INITIAL_DATA__} />
20 </React.StrictMode>
21);

HTOCREADME.md2 matches

@homestocompareโ€ขUpdated 5 days ago
14
15- `/backend` - Server-side code using Hono for API endpoints and SQLite for data storage
16- `/frontend` - Client-side code using React and TailwindCSS
17- `/shared` - Shared types and utilities used by both frontend and backend
18
25- Hono (Backend API framework)
26- SQLite (Database)
27- React (Frontend UI)
28- TailwindCSS (Styling)
29- TypeScript (Type safety)

a_new_website4 file matches

@wolfโ€ขUpdated 3 hours ago
Starter template with client-side React & Hono server

reactHonoStarter4 file matches

@ashryanioโ€ขUpdated 4 hours ago
Starter template with client-side React & Hono server
effector
Write business logic with ease Meet the new standard for modern TypeScript development. Type-safe, reactive, framework-agnostic library to manage your business logic.
officialrajdeepsingh
Follow me if you learn more about JavaScript | TypeScript | React.js | Next.js | Linux | NixOS | Frontend Developer | https://linktr.ee/officialrajdeepsingh