我正在开发一个个人网站,前面使用 NextJS 和 MAterial-UI,后面使用 Strapi。但是,当我编写代码并保存时,有时我在 const 'useStyles=makeStyles' 下编写的 CSS 不受欢迎。我不知道天气是 NextJS 还是 Material-UI 问题。
检查以下示例:
不尊重 CSS(注意 justify-content 和搜索输入没有 CSS):

该代码可在此处获得。https://github.com/augustomallmann/personal/blob/main/frontend/src/components/Header.jsx
我试图在页面上插入代码,但没有正确设置样式。
我正在使用 Firebase oAuth 构建应用程序。我遵循了所有说明,但我的代码返回了一个错误,指出“异步箭头函数预期没有返回值”。
我看到有多个标题相同的帖子,但没有找到答案。
import firebase from 'firebase/app';
import 'firebase/firestore';
import 'firebase/auth';
export const auth = firebase.auth();
export const firestore = firebase.firestore();
const config = {
apiKey: 'AIzaSyDptaU9-hQIIpAW60S1-aGUSdcQdijbNAQ',
authDomain: 'ecommerce-50be3.firebaseapp.com',
projectId: 'ecommerce-50be3',
storageBucket: 'ecommerce-50be3.appspot.com',
messagingSenderId: '948534790840',
appId: '1:948534790840:web:6329c3edcc717138a5424d',
};
firebase.initializeApp(config);
export const createUserProfileDocument = async (userAuth, additionalData) => {
if (!userAuth) return;
const userRef = firestore.doc(`users/${userAuth.uid}`);
const snapShot = await userRef.get();
if (!snapShot.exists) {
const { displayName, email } = userAuth;
const createdAt = new Date();
try {
await …Run Code Online (Sandbox Code Playgroud)