[更新]简单的官方demo井字棋

This commit is contained in:
唐明明
2021-02-15 21:20:16 +08:00
parent 86a21a6c83
commit 001eb197a2
12 changed files with 212 additions and 15 deletions

View File

@@ -0,0 +1,13 @@
const reportWebVitals = onPerfEntry => {
if (onPerfEntry && onPerfEntry instanceof Function) {
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
getCLS(onPerfEntry);
getFID(onPerfEntry);
getFCP(onPerfEntry);
getLCP(onPerfEntry);
getTTFB(onPerfEntry);
});
}
};
export default reportWebVitals;