Skip to content

Commit

Permalink
apply fragment tag
Browse files Browse the repository at this point in the history
  • Loading branch information
KOO-YS committed Jan 21, 2023
1 parent 3b63622 commit 79f2a59
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dice-game/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@
</head>
<body>
<div id="root"></div>
<div id="contraction"></div>
</body>
</html>

14 changes: 13 additions & 1 deletion dice-game/src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
import { Fragment } from 'react';
import ReactDOM from 'react-dom/client';

const root = ReactDOM.createRoot(document.getElementById('root'));
const contraction = ReactDOM.createRoot(document.getElementById('contraction'));

root.render(
<h1>실행 테스트</h1>
<Fragment>
<h1>실행 테스트</h1>
<h3>두 줄 이상의 테스트 코드</h3>
</Fragment>
);

contraction.render(
<>
<h1>contraction - 실행 테스트</h1>
<h3>contraction - 두 줄 이상의 테스트 코드</h3>
</>
);

0 comments on commit 79f2a59

Please sign in to comment.