TYPESCRIPT - defaultProps 사용법
import React from "react"; import styled from 'styled-components'; interface ButtonProps { text: boolean children: any _onClick: () => void margin: string width: string height: string padding: string active: boolean bg: string color: string br: string top: string left: string } //interface에다 프롭스의 타입을 전부 정의 해줘야 한다. const Button = ({ text, _onClick, children, margin, width, padding, height, active..