// ./style/index.ts
import * from './background';
import * from './label';
// ./index.ts
import * as S from './style';
export default function Button() {
...
return (
<S.Background>
<Button/>
</S.Background>
)}
//๊ธฐ๋ณธ
import Example from './Example.js';
//export ํ ๋ default๊ฐ ์์ผ๋ฉด ์ค๊ดํธ๊ฐ ํ์
import {Example} from './Example.js';
import React, {Component} from 'react';
//node_modules์ ์ค์น๋ ๋ชจ๋์ ๋ถ๋ฌ์ฌ ๋๋ ๊ฒฝ๋ก ์ง์ ํ์์์
import Example from 'Example';
//๋ชจ๋ ์ ์ฒด์ ์ฌ์ด๋ ์ดํํธ๋ง ๊ฐ์ ธ์จ๋ค๋๋ฐ
import './Example.js';
const coffee = function (i) {
let sum = i + 2
};
const example = 2;
export default coffee;
export {example};
export const foo = "HI";
import coffee.sum, {example, foo} from './example';