scratchdth7383
@scratchdth7383
Reviews Written
1
Average Rating
5.0
Posts
Q&A
์๋์ด์๋จ๋๋ค
์ ๊ธ์ ๊ฐ ํ๋ ธ๊ตฐ์์ ๊ฐ ๊ธ์๋ฅผ ์ํ๋ฆฌ๋๋ก ๋ ธ๋ ฅํด์ผ๊ณ๋ค์
- 1
- 2
- 371
Q&A
์คํ ์์ผ๋ ๋ณํ๊ฐ ์์ด์
๋ค์ ์ฒ์๋ถํฐ ํ๋๋ ๋ฌ์ด์ ์ด์ ๋ญ๊ฐ ๋ฌธ์ ์๋์ง ์ฐพ์๋ณด๋ ค๊ณ ์function Library(props) { return( ); }Book์ book์ผ๋ก ์ป๋ค์ ใ ใ
- 1
- 9
- 840
Q&A
์คํ ์์ผ๋ ๋ณํ๊ฐ ์์ด์
๋ฐ๋ก์ฑ๊ณต ํ์ด์ใ ใ ใ ใ ใ ใ ใ
- 1
- 9
- 840
Q&A
์คํ ์์ผ๋ ๋ณํ๊ฐ ์์ด์
๋ค ์ฒจ๋ถํด๋ค๋ฆฌ๊ฒ ์ต๋๋ค๊ทธ๋ฆฌ๊ณ ์ ๊ฐ ์ฐพ์๋ณด๊ณ ์ฐ์ง ๋ชจ๋ฅธ๋ค๊ณ ๋งํ ๋๊น์ง ๋ต์ ์๋ ค์ฃผ์ง ๋ง์์ฃผ์ธ์]์ ๊ฐ ์ค์ค๋ก ์ฐพ์๋ณด๊ฒ ์ต๋๋คimport React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import reportWebVitals from './reportWebVitals'; import Library from './C03/Library'; ReactDOM.render( , document.getElementById('root') ); // If you want to start measuring performance in your app, pass a function // to log results (for example: reportWebVitals(console.log)) // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals reportWebVitals(); import React from "react"; function Book(props){ return( {`์ด์ฑ ์ ์ด๋ฆ์ ${props.name}์ ๋๋ค.`} {`์ด์ฑ ์ ์ด ${props.numOfPage}ํ์ด์ง๋ก ์ด๋ค์ ธ ์์ต๋๋ค.`} ); } export default Book;import React from "react"; import book from "./Book"; function Library(props) { return( ); } export default Library; mport logo from './logo.svg'; import './App.css'; function App() { return ( (์ฌ์ง) Edit src/App.js and save to reload. Learn React ); } export default App;
- 1
- 9
- 840
Q&A
์คํ ์์ผ๋ ๋ณํ๊ฐ ์์ด์
์ฌ์ ํ ์๋์ด ์๋ฉ๋๋ค
- 1
- 9
- 840
Q&A
์คํ ์์ผ๋ ๋ณํ๊ฐ ์์ด์
์ ๊ณ ๋ง์ต๋๋ค
- 1
- 9
- 840
Q&A
์คํ ์์ผ๋ ๋ณํ๊ฐ ์์ด์
๊ทธ๋ฆญ๊ณ ','์ด(๊ฐ) ํ์ํฉ๋๋ค.๋ค๊ฐ index.js ๊ฐ ์์ ๋ธ๋๋คimport React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import reportWebVitals from './reportWebVitals'; import Library from './C03/Library'; ReactDOM.render( document.getElementById('root') ); // If you want to start measuring performance in your app, pass a function // to log results (for example: reportWebVitals(console.log)) // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals reportWebVitals();
- 1
- 9
- 840
Q&A
์คํ ์์ผ๋ ๋ณํ๊ฐ ์์ด์
์คํ์ ์ํค๋ฉด ๊ธ์๊ฐ ๋ฑ์๋์ผ ๋๋๋ฐ ๊ทธ ๊ธฐ๋ณธ ํ๋ฉด์ด ๋ํ๋๊ณ ์๋ชจ๋ ์ฝ๋์ ๋ฌธ์ ๊ฐ ์๋๋ฏ ํฉ๋๋ค๋ค๋๊ฐ์ด ๋ฐ๋ผ ํ์ต๋๋ค
- 1
- 9
- 840
Q&A
๋ฆฌ์ํธ ๊ฐ์ ธ์ค๊ธฐ ๋ถ๋ถ ํท๊ฐ๋ ธ์ด์
์ํ์ ์๋ ์ ๋ ์์๋๋ ํด์ body ์ฝ๋๋ฅผ ๋ณต๋ถํด๋ดค๋๋ฐ ์๋์ด ๋๋ค์์ฌ๊ธฐ๊ฐ ์คํ์๋ค์ https://unpkg.com/react@17-dom/umd/react-dom.development.js" crossorigin>๊ทธ๋ฐ๋ฐ ์ด๋ฒ์ ๋ฒํผ ๊ธ์๊ฐ ์๋ฐ๋๋๋ค์ฝ๋๋function MyButton(props){ const [isClicked,setIsClicked] = React.useState(false); return React.createElement( 'button', {onclick: () => setIsClicked(true)}, isClicked ? 'Clicked!':'click here!' ) } const domContainer = document.querySelector('#root'); ReactDOM.render(React.createElement(MyButton), domContainer);์ด์ ๊ฐ์ต๋๋ค ๋ญ๊ฐ ๋ฌธ์ ์ผ๊น์
- 0
- 3
- 1K




