"External" demos allow you to write code in dedicated files, declutter MDX markup, and take advantage of your IDE's features.
In external demos, all imported modules will be resolved at build time. Make sure you have installed them as the project's dependencies.
This MDX file includes an external demo defined as:
Which turns into: