mirror of
https://github.com/status-im/sourcecred.git
synced 2025-01-10 20:56:29 +00:00
ca5346b524
Summary: Our build system doesn’t make it easy to have two separate React applications, which we would like to have for the V1 and V3 branches. Instead, we’ll implement a bridge to maintain compatibility. The plan looks like this: 1. Change the app from pointing to V1 to pointing to a bridge 2. Move the router into the bridge and move the V1 app from the `/` route to the `/v1` route (e.g., `/v1/explorer`) 3. Add a V3 app under the `/v3` route 4. ??? 5. Delete the V1 app and remove it from the bridge 6. Delete the bridge and move the V3 app from the `/v3` route to `/` This commit implements Step 1. Test Plan: To verify that the bridge is in fact showing, apply ```diff diff --git a/src/bridge/app/index.js b/src/bridge/app/index.js index 379e289..72e784c 100644 --- a/src/bridge/app/index.js +++ b/src/bridge/app/index.js @@ -9,5 +9,11 @@ const root = document.getElementById("root"); if (root == null) { throw new Error("Unable to find root element!"); } -ReactDOM.render(<V1App />, root); +ReactDOM.render( + <React.Fragment> + <h1>Hello</h1> + <V1App /> + </React.Fragment>, + root +); registerServiceWorker(); ``` and say “hello” back to the app. wchargin-branch: bridge