mirror of
https://github.com/docker/awesome-compose.git
synced 2025-04-26 10:43:35 +02:00
add react-nginx (#121)
add react-nginx Signed-off-by: phamthainb <phamthai4643@gmail.com>
This commit is contained in:
parent
30d01c2cad
commit
263ba37b97
24 changed files with 36390 additions and 0 deletions
13
react-nginx/src/reportWebVitals.js
vendored
Executable file
13
react-nginx/src/reportWebVitals.js
vendored
Executable 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;
|
Loading…
Add table
Add a link
Reference in a new issue