Creating React Components
I would like to show the different ways we can create React Components. I like the
arrow function statement
style the most.
#
1) Function declaration#
2) Anonymous function statement#
3) Arrow function statement#
4) default export function#
5) classic component syntaxWhat is your favorite one, is there a better one than the ones I mentioned here?
Originally posted on Dev.to here.