It seems to be obvious, but I found myself a bit confused about when to use curly braces for importing a single module in ES6. For example, in the React-Native project I am
usually when you export a function you need to use the {}
if you have
export const x
you use
import {x} from ''
if you use
export default const x
you need to use
import x from ''
here you can change X to whatever variable you want