Can react studio generate function components and/or use hooks?


#1

new here was just playing with react studio with one of the provided templates

I notice the generated components use classes with lifecycle methods and not the function style (which is what I - and I think most react devs - prefer nowadays, along with hooks)

is there an option to control this?

or plans to generate code in the newer style?


#2

Hi,

Currently the generated code uses traditional lifecycle methods and classes but React Hooks are definitely something we dig into in the next couple of months.