feat: melhora estruturas das pastas
This commit is contained in:
parent
986d617e8a
commit
b150d46d1b
@ -32,8 +32,6 @@
|
||||
color: #c6c6c6;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.lupa-img {
|
||||
height: 18px;
|
||||
margin: 7px 16px 7px 10px;
|
||||
|
@ -1,19 +1,17 @@
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom/client';
|
||||
import { Home } from './pages/Home';
|
||||
import './style/index.css';
|
||||
import Header from "./components/Header/Header";
|
||||
import reportWebVitals from './reportWebVitals';
|
||||
|
||||
const root = ReactDOM.createRoot(
|
||||
document.getElementById('root') as HTMLElement
|
||||
);
|
||||
root.render(
|
||||
<React.StrictMode>
|
||||
<Header />
|
||||
<Home />
|
||||
</React.StrictMode>
|
||||
);
|
||||
|
||||
// If you want to start measuring performance in your app, pass a function
|
||||
// to log results (for example: reportWebVitals(console.log))
|
||||
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
||||
reportWebVitals();
|
||||
|
11
desafio5/src/pages/Home.tsx
Normal file
11
desafio5/src/pages/Home.tsx
Normal file
@ -0,0 +1,11 @@
|
||||
import React from "react";
|
||||
import Header from "../components/Header/Header";
|
||||
|
||||
|
||||
const Home = () => {
|
||||
return (
|
||||
<Header/>
|
||||
)
|
||||
}
|
||||
|
||||
export {Home};
|
@ -1,15 +0,0 @@
|
||||
import { ReportHandler } from 'web-vitals';
|
||||
|
||||
const reportWebVitals = (onPerfEntry?: ReportHandler) => {
|
||||
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;
|
@ -1,5 +0,0 @@
|
||||
// jest-dom adds custom jest matchers for asserting on DOM nodes.
|
||||
// allows you to do things like:
|
||||
// expect(element).toHaveTextContent(/react/i)
|
||||
// learn more: https://github.com/testing-library/jest-dom
|
||||
import '@testing-library/jest-dom';
|
Loading…
Reference in New Issue
Block a user