| Start |
|---|
| Using Barrel For example without a barrel, a consumer would need three import statements: We can add a barrel by creating a file in the same component folder. In this case the folder is called 'heroes' named index.ts (using the conventions) that exports all of these items: Now a consumer can import what it needs from the barrel. Still, this can become a very long line; which could be reduced further. That's pretty reduced! The |
Read Article
https://develop.horje.com/learn/1434/reference