Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request]: Any plans for a React stack? #127

Open
1 task done
perryraskin opened this issue Oct 1, 2021 · 6 comments
Open
1 task done

[Request]: Any plans for a React stack? #127

perryraskin opened this issue Oct 1, 2021 · 6 comments
Labels
question Further information is requested

Comments

@perryraskin
Copy link

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

  • I read the notice
@perryraskin perryraskin added the bug Something isn't working label Oct 1, 2021
@sergejcodes sergejcodes added question Further information is requested and removed bug Something isn't working labels Oct 3, 2021
@sergejcodes
Copy link
Contributor

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?

@perryraskin
Copy link
Author

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!

@smartbadger
Copy link

@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.

@sergejcodes
Copy link
Contributor

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.

@Kusou1
Copy link
Contributor

Kusou1 commented Nov 29, 2021

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

@youngbloodk
Copy link

This.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants