* Implements Basic Routing and API * Implements Package.json file select and json parse * Displays Project Name, Version & Desc from the package.json * Fetch all package details using npm registry API and map it based on package name
12 lines
251 B
TypeScript
12 lines
251 B
TypeScript
import { JSX } from "preact";
|
|
import { IS_BROWSER } from "$fresh/runtime.ts";
|
|
|
|
export function Button(props: JSX.HTMLAttributes<HTMLButtonElement>) {
|
|
return (
|
|
<button
|
|
{...props}
|
|
disabled={!IS_BROWSER || props.disabled}
|
|
/>
|
|
);
|
|
}
|