In Typescript, a type object cannot be extended once it is declared, but an Interface can.
You can specify the type a function should return - insert the type after the argument parentheses:
const makeUser = (): User => {}
CSS Modules are a really nice way to declare styles that are scoped only to certain component. This means you can use a class name more than once without fear of applying the wrong styles. Write styles in a CSS file in the same folder as your React component, the import it into the component.
React Router drastically reduces the amount of state management needed in an app. Because it handles the fetching of data you don't need to do this in a useEffect or implement an isLoading state
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)