How to share repetitive code for multiple playgrounds?
Description
For instance, how can we leverage DRY code and make const value = 0; readable in all the showcases? It's going to have the same value for each showcase. One possible solution: I could have created a separate file, where I put all the repetitive code, but my question implies if there are ways to do it in the same mdx file?
Question
How to share repetitive code for multiple playgrounds?
Description
For instance, how can we leverage DRY code and make
const value = 0;
readable in all the showcases? It's going to have the same value for each showcase. One possible solution: I could have created a separate file, where I put all the repetitive code, but my question implies if there are ways to do it in the same mdx file?Code sample: