DEV Community

Discussion on: Converting a React component to TypeScript

lukeshiru profile image

For this particular component, children could go just next to the Add icon, like: <Add />{children}, or make it optional, like: {children ?? <Add />}, but yup, as it's being used right now, VFC is a better option (I mainly explained the reason why I personally default to FC).