website: try to fix SSR mismatch bug

pull/225/head
Yangshun 4 years ago
parent 029e4163c7
commit 9084053aab

@ -21,6 +21,7 @@ export default React.memo(function SidebarAd() {
<a <a
className={clsx(styles.container, backgroundClass)} className={clsx(styles.container, backgroundClass)}
href="https://www.moonchaser.io/?utm_source=techinterviewhandbook&utm_medium=referral&utm_content=website_docs_sidebar" href="https://www.moonchaser.io/?utm_source=techinterviewhandbook&utm_medium=referral&utm_content=website_docs_sidebar"
key={Math.random()}
target="_blank" target="_blank"
rel="noreferrer noopener" rel="noreferrer noopener"
onClick={() => { onClick={() => {
@ -35,6 +36,7 @@ export default React.memo(function SidebarAd() {
<a <a
className={clsx(styles.container, backgroundClass)} className={clsx(styles.container, backgroundClass)}
href="https://www.levels.fyi/services/?ref=TechInterviewHandbook&utm_source=techinterviewhandbook&utm_medium=referral&utm_content=website_docs_sidebar" href="https://www.levels.fyi/services/?ref=TechInterviewHandbook&utm_source=techinterviewhandbook&utm_medium=referral&utm_content=website_docs_sidebar"
key={Math.random()}
target="_blank" target="_blank"
rel="noreferrer noopener" rel="noreferrer noopener"
onClick={() => { onClick={() => {

@ -64,7 +64,7 @@ function Home() {
<div className="col col--8 col--offset-2"> <div className="col col--8 col--offset-2">
<div className="margin-vert--lg text--center"> <div className="margin-vert--lg text--center">
{Math.random() > 0.5 ? ( {Math.random() > 0.5 ? (
<> <div key={Math.random()}>
<h2 className={styles.sectionPrimaryTitle}> <h2 className={styles.sectionPrimaryTitle}>
<strong> <strong>
Get paid more. Receive risk-free salary negotiation Get paid more. Receive risk-free salary negotiation
@ -84,9 +84,9 @@ function Home() {
Get Risk-free Negotiation Help&nbsp;&nbsp; Get Risk-free Negotiation Help&nbsp;&nbsp;
</a> </a>
</div> </div>
</> </div>
) : ( ) : (
<> <div key={Math.random()}>
<h2 className={styles.sectionPrimaryTitle}> <h2 className={styles.sectionPrimaryTitle}>
<strong> <strong>
Get paid, not played. Chat with former tech recruiters Get paid, not played. Chat with former tech recruiters
@ -106,7 +106,7 @@ function Home() {
Get Negotiation Help&nbsp;&nbsp; Get Negotiation Help&nbsp;&nbsp;
</a> </a>
</div> </div>
</> </div>
)} )}
</div> </div>
</div> </div>

Loading…
Cancel
Save