Summary: This diff refactors `js/react-flipper-example` to React & ReactDOM `18.2.0` and bumps all deps to the `latest`. - Also, specifies the `js-flipper` dep version as `*` which is taken care of by the `relative-deps` script. - Deletes `logo.svg` from `src/` ### Scope: `js/react-flipper-example` ## Changelog [General][Changed] - [Refactor] `js/react-flipper-example` Switch to React `18.2.0` & bump deps. Pull Request resolved: https://github.com/facebook/flipper/pull/4901 Test Plan: - Should pass `js-flipper / build-react-example (pull_request)` workflow. Reviewed By: antonk52 Differential Revision: D47868448 Pulled By: passy fbshipit-source-id: edc67ebe3f205d32ec6198b7130ded287997fe50
21 lines
449 B
TypeScript
21 lines
449 B
TypeScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
*/
|
|
|
|
import React from 'react';
|
|
import {createRoot} from 'react-dom/client';
|
|
import App from './App';
|
|
|
|
const root = createRoot(document.getElementById('root') as HTMLElement);
|
|
|
|
root.render(
|
|
<React.StrictMode>
|
|
<App />
|
|
</React.StrictMode>
|
|
);
|