Summary: Create an example of how one can use `js-flipper` in a browser to connect to Flipper over WS. Reviewed By: mweststrate Differential Revision: D31688114 fbshipit-source-id: 135f826daeddeda8dca5b3df6504cc2bdc04dd1b
28 lines
500 B
TypeScript
28 lines
500 B
TypeScript
/**
|
|
* Copyright (c) Facebook, Inc. and its 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 {FC} from 'react';
|
|
import FlipperTicTacToe from './FlipperTicTacToe';
|
|
|
|
|
|
const App: FC = () => {
|
|
return (
|
|
<div>
|
|
<header>
|
|
React Flipper WebSocket Example
|
|
</header>
|
|
<section>
|
|
<FlipperTicTacToe />
|
|
</section>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default App;
|