Lessons from open-source: Use nested functions for logic encapsulation and separation of concerns.
This lesson is picked from @next/mdx package. In this article, you will learn how next.js source code applies encapsulation and separation of concerns with nested functions in @next/mdx package.
Compile nested inside createFormatAwareProcessors func...
ramunarasinga.hashnode.dev2 min read