Explain the syntax in this function

what on earth is going on here

const App: React.FC = () =>  {}

I don’t understand the question. Do you mean how you convert a function component to a class component?

I mean you can’t write a class as an arrow function, it’s a function, not a class. You can make a constructor function, but that’s not a class.

@lasjorg sry about that. I editted the example above that i got from one of the fcc blog articles.

...App: React.FC...

whats going on here

It is TypeScript if that is what you are asking?

React.FC is the type for a react function component.

ooooooooooooh derp. throught it was some new feature in Js. sry

Asking questions is how we learn, no need to be sorry.

Happy coding!