-
-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update react and react testing library
- Loading branch information
Showing
4 changed files
with
179 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,49 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import { createRoot } from 'react-dom/client'; | ||
|
||
import Example1 from './Example1'; | ||
import Example2 from './Example2'; | ||
import Example3 from './Example3'; | ||
import Example4 from './Example4'; | ||
import FormatValuesExample from './FormatValuesExample'; | ||
|
||
ReactDOM.render(<Example1 />, document.getElementById('example-1')); | ||
const container = document.getElementById('app'); | ||
const root = createRoot(container!); | ||
|
||
ReactDOM.render(<Example2 />, document.getElementById('example-2')); | ||
const Content = () => { | ||
return ( | ||
<> | ||
<div id="example-1"> | ||
<Example1 /> | ||
</div> | ||
|
||
ReactDOM.render(<Example3 />, document.getElementById('example-3')); | ||
<hr /> | ||
|
||
ReactDOM.render(<Example4 />, document.getElementById('example-4')); | ||
<div id="example-2"> | ||
<Example2 /> | ||
</div> | ||
|
||
ReactDOM.render(<FormatValuesExample />, document.getElementById('format-values-example')); | ||
<hr /> | ||
|
||
<div id="example-3"> | ||
<Example3 /> | ||
</div> | ||
|
||
<hr /> | ||
|
||
<div id="example-4"> | ||
<Example4 /> | ||
</div> | ||
|
||
<hr /> | ||
|
||
<div id="format-values-example"> | ||
<FormatValuesExample /> | ||
</div> | ||
|
||
<hr /> | ||
</> | ||
); | ||
}; | ||
|
||
root.render(<Content />); |
Oops, something went wrong.