I've upgraded to typescript 3.2.2 and this code which used to compile is now not compiling:
export const Heading: React.SFC<HeadingProps> = ({ level, className, tabIndex, children, ...rest }) => {
const Tag = `h${level}`;
return (
<Tag className={cs(className)} {...rest} tabIndex={tabIndex}>
{children}
</Tag>
);
};
With the error:
Property 'tabIndex' does not exist on type 'IntrinsicAttributes'.