mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Currently the playground is setup as a linked workspace for the
compiler which complicates our yarn workspace setup and means that snap
can sometimes pull in a different version of react than was otherwise
specified.
There's no real reason to have these workspaces combined so let's split
them up.
ghstack-source-id: 56ab064b2f
Pull Request resolved: https://github.com/facebook/react/pull/31081
27 lines
655 B
TypeScript
27 lines
655 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.
|
|
*/
|
|
|
|
'use client';
|
|
|
|
import {SnackbarProvider} from 'notistack';
|
|
import {Editor, Header, StoreProvider} from '../components';
|
|
import MessageSnackbar from '../components/Message';
|
|
|
|
export default function Page(): JSX.Element {
|
|
return (
|
|
<StoreProvider>
|
|
<SnackbarProvider
|
|
preventDuplicate
|
|
maxSnack={10}
|
|
Components={{message: MessageSnackbar}}>
|
|
<Header />
|
|
<Editor />
|
|
</SnackbarProvider>
|
|
</StoreProvider>
|
|
);
|
|
}
|