Import two exported classes with the same name
Solution 1:
You can use as
like this:
import {Class1} from '../location1/class1'
import {Class1 as Alias} from '../location2/class1'
You can find more about the ES6 import statement here.
You can use as
like this:
import {Class1} from '../location1/class1'
import {Class1 as Alias} from '../location2/class1'
You can find more about the ES6 import statement here.