React - Props로 데이터 전달하기
App.jsximport "./App.css";import Header from "./components/Header";import Button from "./components/Button";function App() { const buttonProps = { text: "메일", color: "red", a: 1, b: 2, c: 3, }; return ( 자식 요소 );}export default App;Button.jsxconst Button = ({ children, text, color = "black" }) => { return ( {text} - {colo..