New top-level React root: <App />
This commit is contained in:
parent
9a1f722545
commit
173771d34b
22 changed files with 457 additions and 266 deletions
15
ts/state/roots/createApp.tsx
Normal file
15
ts/state/roots/createApp.tsx
Normal file
|
@ -0,0 +1,15 @@
|
|||
// Copyright 2021 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import React, { ReactElement } from 'react';
|
||||
import { Provider } from 'react-redux';
|
||||
|
||||
import { Store } from 'redux';
|
||||
|
||||
import { SmartApp } from '../smart/App';
|
||||
|
||||
export const createApp = (store: Store): ReactElement => (
|
||||
<Provider store={store}>
|
||||
<SmartApp />
|
||||
</Provider>
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue