<rem />

Hi there

2021-10-06
Summary

这是一个 React 应用示例,展示了如何使用 useEffect hook 在组件加载时设置网页标题为 "hello world"。代码同时引入了全局 CSS 样式,并导出了一个基础的应用组件。

This is a post for testing

import { useEffect } from 'react';
import '@/styles/global.css';

const MyApp = ({ pageProps }) => {
  useEffect(() => {
    document.title = 'hello world';
  }, []);
  return <Component {...pageProps} />;
};

export default MyApp;