Skip to content

Instantly share code, notes, and snippets.

View kenny-io's full-sized avatar
😀
Always available

Ekene Eze kenny-io

😀
Always available
View GitHub Profile
import {ReactNode, useState} from "react";
export function Section({
children,
hideHeading,
className
}: { children?: ReactNode, className?: string, hideHeading?: boolean }) {
return <div style={{padding: 64}} className={className}>
{!hideHeading && <h1>My Hero</h1>}
{children}