Tips
Here are some tips you can take into account when creating webcomponents with Atomico
Component name as function
function component() {
return <host />;
}useProp
function useCounter(prop) {
const [value, setValue] = useProp(prop);
return {
value,
increment() {
setValue(value + 1);
},
};
}Prefers the use of static styles
Last updated
Was this helpful?
