Node js(14)
-
React 방식으로 요소 추가하기
https://stackoverflow.com/questions/66966134/how-to-pass-child-element-to-parent-in-react How to pass child element to parent in React How can i pass child element to parent element and then render it using React? Example of my code: let persons = [{name: 'Bill', age: '25'}, {name: 'John', age: '35'}]; // etc etc function stackoverflow.com
2023.04.05 -
render 테스트
import React from 'react'; import ReactDOM from 'react-dom/client'; import './index.css'; const myElement = I Love JSX!; //const divElement = React.createElement('div') const myElement2 = React.createElement('h1', {}, 'I do not use JSX!'); const root = ReactDOM.createRoot(document.getElementById('root')); root.render(myElement); function runAfter() { root.render(myElement2); } setTimeout(runAfte..
2023.04.05