initial commit for barebones code

This commit is contained in:
2021-11-19 14:23:55 -06:00
parent 6fad2db2f9
commit 80b851b777
3 changed files with 31 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
export const KandyKorner = () => {
}
+14
View File
@@ -0,0 +1,14 @@
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import reportWebVitals from './reportWebVitals';
import { KandyKorner } from './KandyKorner';
ReactDOM.render(
<React.StrictMode>
<KandyKorner />
</React.StrictMode>,
document.getElementById('root')
);
reportWebVitals();
+13
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;