mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-27 05:02:43 +00:00
no idea what changed but now it works
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/* eslint-disable camelcase */
|
||||
import 'core-js/es/string/to-well-formed.js'; //Polyfill for older browsers
|
||||
import './homebrew.less';
|
||||
import { useState, useEffect } from 'react';
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import { StaticRouter as Router, Route, Routes, useParams, useSearchParams } from 'react-router';
|
||||
|
||||
import HomePage from './pages/homePage/homePage.jsx';
|
||||
@@ -43,7 +43,7 @@ const Homebrew = (props)=>{
|
||||
|
||||
const [isClient, setIsClient] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
useEffect(()=>{
|
||||
setIsClient(true);
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user