[react 실습 code]codesandbox

박지윤·2022년 7월 29일
0

<react.fragment/> <></>

  • element를 react에 주입

codesandbox code

https://codesandbox.io/

<!DOCTYPE html>
<html lang="en">
  <body>
    <script
      crossorigin
      src="https://unpkg.com/react@17/umd/react.production.min.js"
    ></script>
    <script
      crossorigin
      src="https://unpkg.com/react-dom@17/umd/react-dom.production.min.js"
    ></script>
    <script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
    <div id="root"></div>
    <script type="text/babel">
      const rootElement = document.getElementById("root");
      const element = {/*--fill--*/}
      ReactDOM.render(element, rootElement);
    </script>
  </body>
</html>
profile
화이팅~

0개의 댓글