← Code LabReact Native0/50 solved · 0%
Architecture · hard

40. Simulating TurboModule lazy loading

Only initialize a module the first time it's needed.

Write `createLazyLoader(factory)` returning a function `get()` that calls `factory()` only on its first invocation, caching and returning the same instance on subsequent calls.
Required in your answer: loaded