From 6ffdba946c8db14d09c95bb3d61d7095571d39b4 Mon Sep 17 00:00:00 2001
From: Vitaly Takmazov
Date: Tue, 5 May 2020 10:40:16 +0300
Subject: Prepare to SSR
---
vnext/src/App.js | 138 ++++++++++++++++++++++++++---------------------------
vnext/src/index.js | 5 +-
2 files changed, 72 insertions(+), 71 deletions(-)
(limited to 'vnext/src')
diff --git a/vnext/src/App.js b/vnext/src/App.js
index f06d482f..765697ab 100644
--- a/vnext/src/App.js
+++ b/vnext/src/App.js
@@ -1,5 +1,5 @@
import React, { useState, useEffect, useRef } from 'react';
-import { BrowserRouter as Router, Route, Link, Switch } from 'react-router-dom';
+import { Route, Link, Switch } from 'react-router-dom';
import { useScroll, useRafState } from 'react-use';
import qs from 'qs';
@@ -146,74 +146,72 @@ export default function App() {
});
};
return (
-
- <>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {
- visitor.uid > 0 &&
-
- }
- >
-
+ <>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {
+ visitor.uid > 0 &&
+
+ }
+ >
);
}
diff --git a/vnext/src/index.js b/vnext/src/index.js
index 5f45ecc2..6cbb3c44 100644
--- a/vnext/src/index.js
+++ b/vnext/src/index.js
@@ -1,5 +1,6 @@
import React, { lazy, Suspense } from 'react';
import ReactDOM from 'react-dom';
+import { BrowserRouter } from 'react-router-dom';
import './index.css';
@@ -16,7 +17,9 @@ const Juick = lazy(() => import('./App'));
const JuickApp = () => (
-
+
+
+
);
--
cgit v1.2.3