小编Jac*_*rin的帖子

Material UI Button loses Styling after page refresh

I'm using useStyles to style my login page. Everything on the page has the right style and it doesn't lose it after the refresh, apart from the button. The button is the only thing in the page that loses the styling after the refresh.

Login.js:

import { useEffect, useState, Fragment } from 'react';
import axios from 'axios'
import { BrowserRouter as Router, Switch, Route, MemoryRouter, Redirect, useHistory } from "react-router-dom";
import { useStyles } from './style/Login-styling'
import { Container, Grid, …
Run Code Online (Sandbox Code Playgroud)

javascript styling reactjs material-ui

6
推荐指数
1
解决办法
4975
查看次数

标签 统计

javascript ×1

material-ui ×1

reactjs ×1

styling ×1