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/$%7BsvgDataUrl%7D?q=react&page=13&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 17040 results for "react"(3298ms)

reactHonoExample_1741966050549

@shouser•Updated 3 months ago
Example with client-side React & Hono server

reactHonoStarter4 file matches

@agree•Updated 3 months ago

reactHonoStarter4 file matches

@jxnblk•Updated 3 months ago

reactWeatherDashboard1 file match

@nik•Updated 3 months ago

reactWeatherDashboard1 file match

@vanzel•Updated 3 months ago

reactHonoStarter4 file matches

@pomdtr•Updated 3 months ago

reactHonoExample9 file matches

@alexwein•Updated 3 months ago

reactRouter710 file matches

@justbe•Updated 4 months ago
React router v7 running in a val.town project

valentinePageReact1 file match

@siddh•Updated 4 months ago

reactRouter710 file matches

@charmaine•Updated 4 months ago

prettybabyindex.tsx2 matches

@wqkdqw•Updated 41 mins ago
1/** @jsx h */
2import { renderToString } from "https://esm.sh/preact-render-to-string@6.3.1";
3import { h } from "https://esm.sh/preact@10.19.2";
4
5const RedirectHTML = () => {

amaheart.js8 matches

@tmcwxxxxx•Updated 41 mins ago
14 }
15 this.validateEmoji()
16 ? this.hasReacted()
17 ? this.setReacted()
18 : (this.addEventListener("click", this._send),
19 this.addEventListener("keydown", this._send))
48 return this.hasAttribute("disabled");
49 }
50 hasReacted() {
51 return (localStorage.getItem(this.KEY) || "").split(",").includes(this.key);
52 }
53 setReacted() {
54 this.setAttribute("aria-pressed", "true"),
55 this.toggleAttribute("disabled", !0),
56 this.removeEventListener("click", this._send);
57 }
58 saveReaction() {
59 const t = (localStorage.getItem(this.KEY) || "").split(",").filter(
60 (t) => t,
78 !this.disabled && "true" !== this.getAttribute("aria-busy")
79 ) {
80 if (this.hasReacted()) return this.setReacted();
81 this.setAttribute("aria-busy", "true"),
82 await fetch(this.href, {
86 }),
87 this.setAttribute("aria-busy", "false"),
88 this.saveReaction(),
89 this.setReacted(),
90 this.dispatchEvent(new CustomEvent("open-heart", { bubbles: !0 }));
91 this.getCount();
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