© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
shadowtime2000
I program
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
Full Stack Dev
Interesting! I'd never heard of import type until your comment. The more ya know!
import type
typescriptlang.org/docs/handbook/release-notes/ty…