cl-react icon indicating copy to clipboard operation
cl-react copied to clipboard

Functional Components, What happened to Hooks, Workflow Question

Open daninus14 opened this issue 1 year ago • 0 comments

Hi, thanks so much for sharing.

Are functional components supported or do you think they are easy to implement?

I saw there's a hooks branch with commits out of sync with master, what happened?

Workflow question: My use case is basically that I want to reduce template code in my react components, yet at the same time generate javascript code that will work nicely with my existing react repository and internal libraries. Ideally I would like to write CL code which will generate JS files in a specific path, and edit the index file to include the new file as exported when compiling or saving.

Do you think this library can be easily molded to fit that workflow?

I'd appreciate your opinion before jumping into the rabbit hole 😉

The example only uses react components defined in the same file, can I use other react components simply by adding an s-expression (psx (:-my-comment :data data) even if they are not defined? I can deal with the imports things in the react repository after the file is generated.

Thanks so much in advance for your perspective!

daninus14 avatar Jan 22 '25 23:01 daninus14