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?q=react&page=858&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 9419 results for "react"(8892ms)

GDI_FileUploadmain.tsx3 matches

@all•Updated 7 months ago
1/** @jsxImportSource https://esm.sh/react */
2import React, { useState } from "https://esm.sh/react";
3import { createRoot } from "https://esm.sh/react-dom/client";
4
5function App() {

GDI_FileUploadmain.tsx3 matches

@rozek•Updated 7 months ago
1/** @jsxImportSource https://esm.sh/react */
2import React, { useState } from "https://esm.sh/react";
3import { createRoot } from "https://esm.sh/react-dom/client";
4
5function App() {

GDI_TemperatureConvertermain.tsx5 matches

@rozek•Updated 7 months ago
1/** @jsxImportSource https://esm.sh/react */
2import React, { useState } from "https://esm.sh/react";
3import { createRoot } from "https://esm.sh/react-dom/client";
4
5function TemperatureConverter() {
7 const [fahrenheit, setFahrenheit] = useState('');
8
9 const handleCelsiusChange = (e: React.ChangeEvent<HTMLInputElement>) => {
10 const value = e.target.value;
11 setCelsius(value);
13 };
14
15 const handleFahrenheitChange = (e: React.ChangeEvent<HTMLInputElement>) => {
16 const value = e.target.value;
17 setFahrenheit(value);

GDI_TemperatureConverterREADME.md1 match

@rozek•Updated 7 months ago
6frontend and backend.
7
8It contains a reactive(!) converter between °Celsius and °Fahrenheit - made
9using Townie.
10

GDI_AnalogClockmain.tsx3 matches

@rozek•Updated 7 months ago
1/** @jsxImportSource https://esm.sh/react */
2import React, { useState, useEffect } from "https://esm.sh/react";
3import { createRoot } from "https://esm.sh/react-dom/client";
4
5function AnalogClock({ time }) {

GDI_DigitalClockmain.tsx3 matches

@rozek•Updated 7 months ago
1/** @jsxImportSource https://esm.sh/react */
2import React, { useState, useEffect } from "https://esm.sh/react";
3import { createRoot } from "https://esm.sh/react-dom/client";
4
5function App() {

GDI_HelloWorldmain.tsx3 matches

@rozek•Updated 7 months ago
1/** @jsxImportSource https://esm.sh/react */
2import React from "https://esm.sh/react";
3import { createRoot } from "https://esm.sh/react-dom/client";
4
5function App() {

HTTP_analogClockmain.tsx3 matches

@rozek•Updated 7 months ago
1/** @jsxImportSource https://esm.sh/preact */
2import htm from "https://esm.sh/htm";
3import { h, render } from "https://esm.sh/preact";
4import { useEffect, useState } from "https://esm.sh/preact/hooks";
5
6const html = htm.bind(h);

HTTP_digitalClockmain.tsx3 matches

@rozek•Updated 7 months ago
1/** @jsxImportSource https://esm.sh/preact */
2import { h, render } from "https://esm.sh/preact";
3import { useState, useEffect } from "https://esm.sh/preact/hooks";
4import htm from "https://esm.sh/htm";
5

buildagencymain.tsx3 matches

@elliotbraem•Updated 7 months ago
1/** @jsxImportSource https://esm.sh/react */
2import React from "https://esm.sh/react";
3import { createRoot } from "https://esm.sh/react-dom/client";
4
5function App() {

new_website

@wolf•Updated 17 hours ago
Starter template with client-side React & Hono server

IClickWolf4 file matches

@vtTestLocal•Updated 2 days 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