Search posts, tags, users, and pages
shadowtime2000
You could also do
import type { PropsWithChildren } from "react";
because it's easier for build tools to know it's a type import so they can remove it without ruining the output of the code.
Ozzie Neher
Interesting! I'd never heard of import type until your comment. The more ya know!
import type
typescriptlang.org/docs/handbook/release-notes/ty…