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=847&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 9478 results for "react"(1022ms)

TaylorSwiftMomentsmain.tsx4 matches

@vawogbemi•Updated 5 months ago
1/** @jsxImportSource https://esm.sh/react */
2import { createFalClient } from "https://esm.sh/@fal-ai/client";
3import React, { useEffect, useState } from "https://esm.sh/react";
4import { createRoot } from "https://esm.sh/react-dom/client";
5
6const swiftEras = [
215 };
216
217 const generateImage = async (e?: React.FormEvent) => {
218 e?.preventDefault();
219 setLoading(true);

sendNotificationREADME.md1 match

@wizos•Updated 5 months ago
3This val can be used in other vals to send notifications to a segment using [OneSignal's REST API](https://documentation.onesignal.com/reference/create-notification)
4
5This is really handy if you want to send push notifications to your phone without building a native app! I built a barebones React PWA that asks for a password then loads the OneSignal Web SDK that I deployed to [Netlify](https://www.netlify.com/) for free. OneSignal has [easy to follow docs](https://documentation.onesignal.com/docs/web-sdk-setup) so you can build this functionality into a React, Angular, Vue app or even Wordpress! Then [install the PWA](https://www.bitcot.com/how-to-install-a-pwa-to-your-device/) on your platform of choice and you're off to the races!
6
7## Setup

affableMagentaPlanarianmain.tsx3 matches

@willthereader•Updated 5 months ago
1/** @jsxImportSource https://esm.sh/react */
2import * as cheerio from "https://esm.sh/cheerio";
3import React, { useEffect, useState } from "https://esm.sh/react";
4import { createRoot } from "https://esm.sh/react-dom/client";
5
6console.log("Version: " + import.meta.url.match(/[?&]v=([^&]*)/)?.at(1));

SIPforKCCmain.tsx4 matches

@Mirceanicolaeciobanu•Updated 5 months ago
1/** @jsxImportSource https://esm.sh/react */
2import React, { useEffect, useState } from "https://esm.sh/react";
3import { createRoot } from "https://esm.sh/react-dom/client";
4
5const initialActions = [
45 "Trained staff to recognise clinical and acute circumstances and have confidence to act in such circumstances",
46 toBeTaken:
47 "Clinical training matrix to be developed: NEWS2 process training: NATIONAL EARLY WARNING SCORE: Medication: Competencies including confidence is leading a shift Implement REACT TO RED Campaign for initially assessing pressure damage from White = right Red = dead. Using the T Purpose tool within PCS. Guidance in accurate water low scoring. Acute presentations and when to act to include acute onset of infections and decline in known health conditions. Referral processes for: Dietician/falls teams/OT & Physio/SALT.",
48 byWhom: "Nic Ciobanu Vincent Vhinyu Knappe Cross",
49 completionDate: "29/11/2024",

prompt_to_code_auto_refresh_codebedmain.tsx3 matches

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

show_keyword_cloudmain.tsx3 matches

@vip•Updated 5 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() {

StripeCheckoutDemomain.tsx13 matches

@vawogbemi•Updated 5 months ago
1/** @jsxImportSource https://esm.sh/react */
2import confetti from "https://esm.sh/canvas-confetti";
3import React, { useEffect, useState } from "https://esm.sh/react";
4import DatePicker from "https://esm.sh/react-datepicker";
5import { createRoot } from "https://esm.sh/react-dom/client";
6import Stripe from "https://esm.sh/stripe";
7
8const datePickerStyles = `
9 .react-datepicker {
10 font-family: Arial, sans-serif;
11 border: 1px solid #aeaeae;
16 background-color: white;
17 }
18 .react-datepicker__header {
19 text-align: center;
20 background-color: #f0f0f0;
25 position: relative;
26 }
27 .react-datepicker__current-month {
28 margin-top: 0;
29 color: #000;
31 font-size: 1rem;
32 }
33 .react-datepicker__day-names, .react-datepicker__week {
34 display: flex;
35 justify-content: space-around;
36 }
37 .react-datepicker__day-name, .react-datepicker__day {
38 color: #000;
39 display: inline-block;
43 margin: 0.166rem;
44 }
45 .react-datepicker__day:hover {
46 background-color: #f0f0f0;
47 }
48 .react-datepicker__day--selected {
49 background-color: #216ba5;
50 color: #fff;
51 }
52 .react-datepicker__day--today {
53 font-weight: bold;
54 }
55 .react-datepicker__navigation {
56 display: none;
57 }

curiousMoccasinWeaselmain.tsx3 matches

@all•Updated 5 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() {

diacomDemomain.tsx3 matches

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

bricklesGamemain.tsx3 matches

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

reactHonoStarter4 file matches

@texoport•Updated 5 hours ago

new_website

@wolf•Updated 1 day 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