export improt
exprot import를 알아보자🍓
1. Default Export
//export
function Abcd() {
return
}
export default Abcd;
//import
import 아무렇게나작명 from "Abcd의 장소";
2. Named Export
//export
export const Abcd = () => {}
export const Ppap = () => {}
//import
import { Abcd } from "Abcd의 장소";
import { Abcd, Ppap} from "장소"
import { Abcd as 아무렇게나작명, Ppap} from "장소"
//export
export { a, b, c, …, z };
import { a,b,c } from "장소";