Skip to content

Commit c4ca7d6

Browse files
Create index.js
1 parent adeb7d9 commit c4ca7d6

File tree

1 file changed

+10
-0
lines changed
  • packages/tel-frontend/src/tel/components

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { createAll } from 'nhsuk-frontend';
2+
import HelloWorld from './hello-world/hello-world.js';
3+
// import other components here
4+
// import AnotherComponent from './another-component/another-component.js';
5+
6+
const components = [HelloWorld /*, AnotherComponent */];
7+
8+
components.forEach(Component => createAll(Component));
9+
10+
export { HelloWorld /*, AnotherComponent */ };

0 commit comments

Comments
 (0)