accomplishedAzureAardvarkmain.tsx3 matches
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
3import React, { useState } from "https://esm.sh/react@18.2.0";
45function LoanCalculator() {
loanCalculatormain.tsx3 matches
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
3import React, { useState } from "https://esm.sh/react@18.2.0";
45function LoanCalculator() {
sacredScarletSkinkmain.tsx3 matches
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useEffect, useRef } from "https://esm.sh/react@18.2.0";
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
45const PERSONAS = [
cerebrasTemplatemain.tsx3 matches
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
3import React, { useState } from "https://esm.sh/react@18.2.0";
45function App() {
windsurf_projectContextmain.tsx13 matches
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useEffect } from "https://esm.sh/react@18.2.0";
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
45// API Documentation
43/**
44* Main App component
45* @returns {React.ReactElement}
46*/
47function App() {
118* CurrentPhase component
119* @param {{phase: string, onUpdate: Function}} props
120* @returns {React.ReactElement}
121*/
122function CurrentPhase({ phase, onUpdate }) {
126/**
127* Handles form submission
128* @param {React.FormEvent} e - The form event
129*/
130const handleSubmit = (e) => {
158* ActiveBlocks component
159* @param {{blocks: string[], onUpdate: Function}} props
160* @returns {React.ReactElement}
161*/
162function ActiveBlocks({ blocks = [], onUpdate }) {
166/**
167* Handles form submission
168* @param {React.FormEvent} e - The form event
169*/
170const handleSubmit = (e) => {
216* TaskList component
217* @param {{tasks: Task[], onUpdate: Function}} props
218* @returns {React.ReactElement}
219*/
220function TaskList({ tasks = [], onUpdate }) {
226/**
227* Handles form submission
228* @param {React.FormEvent} e - The form event
229*/
230const handleSubmit = (e) => {
342* StepList component
343* @param {{steps: Step[], onUpdate: Function}} props
344* @returns {React.ReactElement}
345*/
346function StepList({ steps = [], onUpdate }) {
352/**
353* Handles form submission
354* @param {React.FormEvent} e - The form event
355*/
356const handleSubmit = (e) => {
456* ChangeList component
457* @param {{changes: Change[]}} props
458* @returns {React.ReactElement}
459*/
460function ChangeList({ changes = [] }) {
cerebras_codermain.tsx10 matches
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import Cerebras from "https://esm.sh/@cerebras/cerebras_cloud_sdk";
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client?deps=react@18.2.0";
4import { Prism as SyntaxHighlighter } from "https://esm.sh/react-syntax-highlighter?deps=react@18.2.0,react-dom@18.2.0";
5import React, { useEffect, useState } from "https://esm.sh/react@18.2.0";
6import { STARTER_PROMPTS } from "https://esm.town/v/stevekrouse/cerebras_coder_prompts";
731}: {
32prompt: string;
33setPrompt: React.Dispatch<React.SetStateAction<string>>;
34handleSubmit: (e: React.FormEvent) => void;
35handleStarterPromptClick: (promptItem: PromptItem) => void;
36}) {
117118function App() {
119const previewRef = React.useRef<HTMLDivElement>(null);
120const [prompt, setPrompt] = useState("");
121const [projectId, setProjectId] = useState<number | null>(null);
175}
176177async function handleSubmit(e: React.FormEvent | string) {
178if (typeof e !== "string") {
179e.preventDefault();
674</div>
675<div className="bg-white w-full h-full flex flex-col grow rounded-xl border-2 border-white overflow-hidden">
676<React.Fragment key={iframeKey}>
677<iframe
678srcDoc={code}
680className="w-full grow"
681/>
682</React.Fragment>
683</div>
684</div>
sedateTurquoiseMitemain.tsx10 matches
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import Cerebras from "https://esm.sh/@cerebras/cerebras_cloud_sdk";
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client?deps=react@18.2.0";
4import { Prism as SyntaxHighlighter } from "https://esm.sh/react-syntax-highlighter?deps=react@18.2.0,react-dom@18.2.0";
5import React, { useEffect, useState } from "https://esm.sh/react@18.2.0";
6import { STARTER_PROMPTS } from "https://esm.town/v/stevekrouse/cerebras_coder_prompts";
731}: {
32prompt: string;
33setPrompt: React.Dispatch<React.SetStateAction<string>>;
34handleSubmit: (e: React.FormEvent) => void;
35handleStarterPromptClick: (promptItem: PromptItem) => void;
36}) {
117118function App() {
119const previewRef = React.useRef<HTMLDivElement>(null);
120const [prompt, setPrompt] = useState("");
121const [projectId, setProjectId] = useState<number | null>(null);
175}
176177async function handleSubmit(e: React.FormEvent | string) {
178if (typeof e !== "string") {
179e.preventDefault();
674</div>
675<div className="bg-white w-full h-full flex flex-col grow rounded-xl border-2 border-white overflow-hidden">
676<React.Fragment key={iframeKey}>
677<iframe
678srcDoc={code}
680className="w-full grow"
681/>
682</React.Fragment>
683</div>
684</div>
cerebras_codermain.tsx10 matches
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import Cerebras from "https://esm.sh/@cerebras/cerebras_cloud_sdk";
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client?deps=react@18.2.0";
4import { Prism as SyntaxHighlighter } from "https://esm.sh/react-syntax-highlighter?deps=react@18.2.0,react-dom@18.2.0";
5import React, { useEffect, useState } from "https://esm.sh/react@18.2.0";
6import { STARTER_PROMPTS } from "https://esm.town/v/stevekrouse/cerebras_coder_prompts";
731}: {
32prompt: string;
33setPrompt: React.Dispatch<React.SetStateAction<string>>;
34handleSubmit: (e: React.FormEvent) => void;
35handleStarterPromptClick: (promptItem: PromptItem) => void;
36}) {
117118function App() {
119const previewRef = React.useRef<HTMLDivElement>(null);
120const [prompt, setPrompt] = useState("");
121const [projectId, setProjectId] = useState<number | null>(null);
175}
176177async function handleSubmit(e: React.FormEvent | string) {
178if (typeof e !== "string") {
179e.preventDefault();
674</div>
675<div className="bg-white w-full h-full flex flex-col grow rounded-xl border-2 border-white overflow-hidden">
676<React.Fragment key={iframeKey}>
677<iframe
678srcDoc={code}
680className="w-full grow"
681/>
682</React.Fragment>
683</div>
684</div>
1/** @jsxImportSource https://esm.sh/react */
2import { csvParse } from "https://esm.sh/d3-dsv@3.0.1";
3import React, { useEffect, useState } from "https://esm.sh/react";
4import { createRoot } from "https://esm.sh/react-dom/client";
56interface YCCompany {
81}, []);
8283const handleFileUpload = (event: React.ChangeEvent<HTMLInputElement>) => {
84const file = event.target.files?.[0];
85if (file) {
96};
9798const handleSubmit = (event: React.FormEvent) => {
99event.preventDefault();
100setIsLoading(true);
genuineSilverUrialmain.tsx3 matches
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState } from "https://esm.sh/react@18.2.0";
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
45function GtaInfo() {