I am new in modern JS world and some things confusing me a little.
In my project I use the following tools:
webpack
for build configuration and execution;babel
as I understand used to compile JSX sources into JS;
Suppose I have following jsx
modules:
foo.jsx
export default function foo(){}
bar1.jsx
import {foo} from './foo';
bar2.jsx
import foo from './foo';
So what is the difference between foo
in bar1.jsx
and bar2.jsx
?