godon019
4/10/2019 - 6:52 AM

import and export practice

for refactoring in the future

Good

const A, B, C
export { A, B, C }

Bad

export const A
export const B
export const C

Why?

Nested File Structure (import and re-export)

import { A, B, C }
export { A, B, C }

easy to write with COPY-AND-PASTE