diff --git a/src/index.tsx b/src/index.tsx index 121dd7af..fd9863ea 100755 --- a/src/index.tsx +++ b/src/index.tsx @@ -6,21 +6,23 @@ import { Trelliscope } from './jsApi'; window.trelliscopeApp = trelliscopeApp; window.Trelliscope = Trelliscope; -const TestComponent = ({ row }) => { - return ( -
- {row.country} -
- ); -}; +interface TestComponentProps { + row: Datum; +} + +const TestComponent: React.FC = ({ row }) => ( +
+ {row.country} +
+); // if in development mode, populate div with an example trelliscope app if (import.meta.env.MODE === 'development') {