add react-nginx (#121)

add react-nginx

Signed-off-by: phamthainb <phamthai4643@gmail.com>
This commit is contained in:
Phạm Hồng Thái
2021-10-10 22:19:58 +07:00
committed by GitHub
parent 30d01c2cad
commit 263ba37b97
24 changed files with 36390 additions and 0 deletions

13
react-nginx/src/reportWebVitals.js vendored Executable file
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;