You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Example 1assetreactReffrom'react';importReact,{Component}fromreactRef;// Example 2import{reactRef}from'./myRefs';importReact,{Component}fromreactRef;
If they should, would they work any differently than just import React, { Component } from 'react';?
The text was updated successfully, but these errors were encountered:
at the very minimum it should act the same if allowed to be turned into
// Example 1assetreactReffrom'react';importReact,{Component}fromreactRef;
However, for the 2nd example it would need to ensure that the binding pointed to by reactRef is to an asset binding rather than to something like a string if we are wanting to keep static graph guarantees. This leads me to think that import() should be used in the second example instead of import...from:
import{reactRef}from'./myRefs';import(reactRef);
A notable thing here is that in order for assets to be allowed to GC they must have some level of mutation in order to remove them from the VM like #6 is trying to ensure.
Should these work?
If they should, would they work any differently than just
import React, { Component } from 'react';
?The text was updated successfully, but these errors were encountered: