fullstackopen-notes/parts/2/renderingCollections/src/main.jsx
2025-05-20 18:41:16 +02:00

24 lines
No EOL
456 B
JavaScript

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 startingNotes={notes} />
)