diff --git a/base-shell/src/components/SomeComponent.jsx b/base-shell/src/components/SomeComponent.jsx new file mode 100644 index 00000000..bd4f4733 --- /dev/null +++ b/base-shell/src/components/SomeComponent.jsx @@ -0,0 +1,17 @@ +import React from 'react'; + +type SomeComponentProps = { + title: string; + count: number; +}; + +const SomeComponent: React.FC = ({ title, count }) => { + return ( +
+

{title}

+

Count: {count}

+
+ ); +}; + +export default SomeComponent; diff --git a/base-shell/src/index.js b/base-shell/src/index.js new file mode 100644 index 00000000..a8f9dbc4 --- /dev/null +++ b/base-shell/src/index.js @@ -0,0 +1,7 @@ +import SomeComponent from './components/SomeComponent'; +import { add, multiply } from './utils/helpers'; + +console.log(add(2, 3)); +console.log(multiply(4, 5)); + +export { SomeComponent, add, multiply }; diff --git a/base-shell/src/utils/helpers.js b/base-shell/src/utils/helpers.js new file mode 100644 index 00000000..341e6512 --- /dev/null +++ b/base-shell/src/utils/helpers.js @@ -0,0 +1,7 @@ +export function add(a: number, b: number): number { + return a + b; +} + +export function multiply(a: number, b: number): number { + return a * b; +}