Let's say I have two React components, A and B, where B depends on (uses) A. Let's say A is in a.js and B is in b.js.
Is there a way in Reag to safely resolve the dependency from B to A? Thus, ensuring that no matter in what order I actually include a.js and b.js, will everything still be resolved correctly?
I believe that the Google Closure compiler effectively fakes the dependency system for you, both in development mode and in production mode. This leads to the fact that other code is not included in the source file; is there something similar for React?
source
share