Creating a nav bar with flexbox

I’ve been learning code only for a couple of weeks, so I have a very basic knowledge. I got stuck trying to build a navbar using flexbox. For some reason I can’t get my nav buttons () to stand in a horizontal way. I’ve been trying and rewritting my code, but I can’t figure it … Read more

TypeScript React.FC confusion

Function ComponentsThese can be written as normal functions that take a props argument and return a JSX element. What about React.FC/React.FunctionComponent? You can also write components with React.FunctionComponent (or the shorthand React.FC): Some differences from the “normal function” version: It provides typechecking and autocomplete for static properties like displayName, propTypes, and defaultProps – However, there are currently known issues using defaultProps with React.FunctionComponent. See this issue for details … Read more