quanto mais voce souber sobre isso mais chances de ser contratado
https://twitter.com/sseraphini/status/1385561029778845698
https://gist.github.com/sibelius/ce9499969cf2a0ccea25291471038bf0
quanto mais voce souber sobre isso mais chances de ser contratado
https://twitter.com/sseraphini/status/1385561029778845698
https://gist.github.com/sibelius/ce9499969cf2a0ccea25291471038bf0
| const breakpoints = { | |
| sm: '640px', | |
| md: '768px', | |
| lg: '1024px', | |
| xl: '1280px', | |
| } as const; | |
| type Breakpoints = keyof typeof breakpoints; | |
| export function useMediaQuery(query: Breakpoints) { |
| /* | |
| ##Device = Desktops | |
| ##Screen = 1281px to higher resolution desktops | |
| */ | |
| @media (min-width: 1281px) { | |
| /* CSS */ | |
While this gist has been shared and followed for years, I regret not giving more background. It was originally a gist for the engineering org I was in, not a "general suggestion" for any React app.
Typically I avoid folders altogether. Heck, I even avoid new files. If I can build an app with one 2000 line file I will. New files and folders are a pain.