The official TypeScript template for Create React App providing preconfigured TypeScript support and development environment setup.
Overall
score
98%
Build an entry point that mounts a branded application shell using the modern concurrent root API of the UI library.
initAppShell with brand and tagline renders them inside the container with id "root" by default. The container is cleared before rendering. @testcontainerId is provided, the shell renders inside that element instead of "root". @teststatus is set to "beta" or "stable"; the badge is omitted otherwise. @testhref attributes, and highlights the active link when active is true. @testdisablePrimary is true. @test@generates
export interface NavLink {
label: string;
href: string;
active?: boolean;
}
export interface AppShellConfig {
containerId?: string;
brand: string;
tagline: string;
status?: "beta" | "stable";
links: NavLink[];
primaryAction: {
label: string;
onClick: () => void;
disablePrimary?: boolean;
};
}
export function initAppShell(config: AppShellConfig): void;UI library for components and strict mode wrapper.
@satisfied-by
DOM renderer that provides the concurrent root mounting API used to attach the app.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-cra-template-typescript