/
githubmirror
/
socket.io
Обзор
Документация
Войти
/
githubmirror
/
socket.io
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
examples/create-react-app-example/src/index.js
18 строк
563 B
Damien Arrachequesne
docs(examples): upgrade to React 18
07 мар 2023, 10:31
Не верифицирован
07 мар 2023, 10:31
b56da8a
Код
Авторство
О чём код?
import React from 'react'; import { createRoot } from 'react-dom/client'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; const container = document.getElementById('root'); const root = createRoot(container) root.render( <React.StrictMode> <App /> </React.StrictMode> ); // If you want your app to work offline and load faster, you can change // unregister() to register() below. Note this comes with some pitfalls. // Learn more about service workers: https://bit.ly/CRA-PWA serviceWorker.unregister();