Skip to content

Commit

Permalink
Update src/index.js.
Browse files Browse the repository at this point in the history
  • Loading branch information
gitauto-ai[bot] authored Sep 18, 2024
1 parent 8cd3b8d commit 68df2bd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from 'react';

Check failure on line 1 in src/index.js

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

src/index.js#L1

"react" is extraneous.

Check notice on line 1 in src/index.js

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

src/index.js#L1

Replace `'react'` with `"react"`
import ReactDOM from 'react-dom';

Check failure on line 2 in src/index.js

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

src/index.js#L2

"react-dom" is extraneous.

Check notice on line 2 in src/index.js

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

src/index.js#L2

Replace `'react-dom'` with `"react-dom"`
import './index.css';

Check failure on line 3 in src/index.js

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

src/index.js#L3

Can't resolve './index.css' in '/src/src'

Check failure on line 3 in src/index.js

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

src/index.js#L3

Import path mush be a path alias

Check notice on line 3 in src/index.js

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

src/index.js#L3

Replace `'./index.css'` with `"./index.css"`
import Calendar from './components/Calendar';

Check failure on line 4 in src/index.js

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

src/index.js#L4

Import path mush be a path alias

Check notice on line 4 in src/index.js

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

src/index.js#L4

Replace `'./components/Calendar'` with `"./components/Calendar"`

const App = () => {
return (
<div className="App">
<Calendar />
</div>
);
};

ReactDOM.render(<App />, document.getElementById('root'));

Check notice on line 14 in src/index.js

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

src/index.js#L14

ReactDOM.render is deprecated since React 18.0.0, use createRoot instead, see https://reactjs.org/link/switch-to-createroot

Check notice on line 14 in src/index.js

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

src/index.js#L14

Replace `'root'` with `"root"`

0 comments on commit 68df2bd

Please sign in to comment.