Open alex-frx opened 4 months ago
Hey like the title Typescript is not working with rest props and spread operator.
rest
Example:
export function ColorPicker({...rest}) { return <HexColorPicker className={"your-component"} {...rest}/>; }
If u use this component typescript cant figure out the types. Example usage:
<ColorPicker color={backColor} onChange={(color) => { setBackColor(color)}} />
Hey like the title Typescript is not working with
rest
props and spread operator.Example:
If u use this component typescript cant figure out the types. Example usage: