Skip to content

Commit 50ec5f3

Browse files
committed
fix: js to jsx
1 parent 16c8451 commit 50ec5f3

28 files changed

+8
-7
lines changed

src/App.js src/App.jsx

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/components/DeleteModal.js src/components/DeleteModal.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const DeleteModal = ({ style, closeModal, content }) => {
1717
.catch((error) => console.log('Network Error : ', error));
1818
};
1919

20-
const modalRef = useRef();
20+
const modalRef = useRef(null);
2121

2222
const outsideClose = (e) => {
2323
if (modalRef.current === e.target) {

src/components/FailModal.js src/components/FailModal.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import wrong from '../img/wrong.png';
44
import { animated } from 'react-spring';
55

66
const FailModal = ({ style, closeModal }) => {
7-
const modalRef = useRef();
7+
const modalRef = useRef(null);
88

99
const outsideClose = (e) => {
1010
if (modalRef.current === e.target) {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/components/SuccessModal.js src/components/SuccessModal.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import correct from '../img/correct.png';
44
import { animated } from 'react-spring';
55

66
const SuccessModal = ({ style, closeModal }) => {
7-
const modalRef = useRef();
7+
const modalRef = useRef(null);
88

99
const outsideClose = (e) => {
1010
if (modalRef.current === e.target) {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/index.js src/index.jsx

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import React from 'react';
2-
import ReactDOM from 'react-dom';
2+
import ReactDOM from 'react-dom/client';
3+
4+
import App from './App.jsx';
35
import './index.css';
4-
import App from './App';
56
import { BrowserRouter } from 'react-router-dom';
6-
ReactDOM.render(
7+
8+
ReactDOM.createRoot(document.getElementById('root')).render(
79
<BrowserRouter>
810
<App />
911
</BrowserRouter>,
10-
document.getElementById('root'),
1112
);
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)