🛡️Atomico with Typescript
Atomico with Typescript will improve the scalability of your project thanks to a really productive type system when creating, distributing and maintaining webcomponents
Construct the props parameter of your functional component.
import { Props } from "atomico";
const props = {
value: { type: Number, value: 0 },
};
function myComponent({ value }: Props<typeof props>) {
return <host>{value * 10}</host>;
}
myComponent.props = props;Check the correct declaration of your component.
Last updated
Was this helpful?
