// @jsx: react // @noUnusedLocals: true // @noLib: true // @skipLibCheck: true // @libFiles: react.d.ts,lib.d.ts // @Filename: my-component.tsx declare var React: any; export function MyComponent(props: any) { return my component; } // @Filename: file1.tsx import * as React from 'react' import { MyComponent } from './my-component' const MY_STRING: string = 'Ceci n\'est pas une string.' const MY_CLASSNAME: string = 'jeclass' class RenderString extends React.PureComponent { render() { return ( <> { MY_STRING } ) } } export default RenderString