How do I add attributes to existing HTML elements in TypeScript/JSX?
Looks like in older versions of type definition files (v0.14) the interfaces were simply declared under a global React namespace, so previously you could use the standard merging syntax. declare namespace React { interface HTMLProps<T> extends HTMLAttributes, ClassAttributes<T> { } } However the new version of d.ts file (v15.0) have declared everything inside a module. … Read more