starting point for part 2 exercise
This commit is contained in:
parent
f741853323
commit
ec568c4e9b
23 changed files with 5722 additions and 0 deletions
24
parts/2/renderingCollections/src/main.jsx
Normal file
24
parts/2/renderingCollections/src/main.jsx
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
import ReactDOM from 'react-dom/client'
|
||||
import App from './App'
|
||||
|
||||
const notes = [
|
||||
{
|
||||
id: 1,
|
||||
content: 'HTML is easy',
|
||||
important: true
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
content: 'Browser can execute only JavaScript',
|
||||
important: false
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
content: 'GET and POST are the most important methods of HTTP protocol',
|
||||
important: true
|
||||
}
|
||||
]
|
||||
|
||||
ReactDOM.createRoot(document.getElementById('root')).render(
|
||||
<App notes={notes} />
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue