Difference between a constant that receives a function, and a function

Asked

Viewed 30 times

0

What is the difference of using

const teste = () => {

}

or

function teste(){

}

inside React? I see some codes that use the const and others that use the functions, but from the tests I did, both work the same way.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.