shopify-theme-lab icon indicating copy to clipboard operation
shopify-theme-lab copied to clipboard

[Request]: Any plans for a React stack?

Open perryraskin opened this issue 3 years ago • 6 comments

Operating system

macOS

Node.js version

14.0.0

Shopify CLI version

2.0.0

Browsers

No response

Version

4 (Current)

Modifications

No response

Details

Would absolutely love a React version of this. Happy to discuss especially if you want help with it!

Notice

  • [X] I read the notice

perryraskin avatar Oct 01 '21 14:10 perryraskin

Not really, but I could add a detailed React section to the README/Docs, it shouldn't take too long to adjust everything for React.

There's a discussion regarding React here One thing that's missing is a proper way to handle props and slots. I think there's a need for some custom code to make them work.

On another note: what are some compelling reasons to use React for a Shopify online store? It's not a SPA, so are there any benefits over a framework like Alpine.js which doesn't require any js components at all?

sergejcodes avatar Oct 03 '21 10:10 sergejcodes

My bad, forgot to check the Discussions tab! For me it's simply bc React is what I'm most familiar with over the others. I do believe many others are in a similar position, too.

Thanks!

perryraskin avatar Oct 03 '21 13:10 perryraskin

@sergejcodes I've never heard of Alpine, I'll check it out.

I'm curious to know your opinion. Would Alpine be better suited to use here instead of Vue? Would you rather use Alpine than Vue? I've built more in React than Vue and nothing in Alpine. However, if it's better to use Vue or Alpine, I'd rather pick the right tool for the job.

smartbadger avatar Oct 14 '21 21:10 smartbadger

Depends on how much JS functionality you want to implement. If you are going for a JS-heavy store with a lot of complex logic, Vue might be the better choice. If it's something lighter, Alpine can be a good alternative, it's quite easy/fast to learn. I would probably start with Alpine and see if it fits the need.

sergejcodes avatar Oct 15 '21 17:10 sergejcodes

react can see there https://shopify.dev/api/hydrogen I feel that support should be better, but currently only a preview

Kusou1 avatar Nov 29 '21 12:11 Kusou1

This.

youngbloodk avatar Mar 18 '22 20:03 youngbloodk