Public
Readme
Code
HTTP
/** @jsxImportSource https://esm.sh/react */
import React, { useCallback, useEffect, useReducer, useRef, useState } from "https://esm.sh/react";
import { hydrateRoot } from "https://esm.sh/react-dom/client";
import { renderToString } from "https://esm.sh/react-dom/server";
import { hnSearch } from "https://esm.town/v/stevekrouse/hnSearch";
import About from "https://esm.town/v/vawogbemi/whoIsHiringAbout";
function App() {
const tabs = { "/": "Home", "/about": "About" };
const [activeTab, setActiveTab] = useState("/");
const [showScrollTop, setShowScrollTop] = useState(false);
const [selectedFilters, setSelectedFilters] = useState([]);
const reducer = (state: {
query: string;
story: string;
page: number;
loading: boolean;
hasMore: boolean;
}, action: { type: string; value: string | boolean | number }) => {
switch (action.type) {
case "query":
return { ...state, query: action.value as string, page: 1 };
case "story":
return { ...state, story: action.value as string, page: 1 };
case "page":
return { ...state, page: action.value as number };
case "loading":
return { ...state, loading: action.value as boolean };
case "hasMore":
return { ...state, hasMore: action.value as boolean };
default:
return state;
}
};
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
Comments
Nobody has commented on this val yet: be the first!
vawogbemi-whoishiring.web.val.run
Updated: April 3, 2025