Anyone who could help me with setting up ory regis...
# ory-network
d
Anyone who could help me with setting up ory registration in a custom UI flow using react, or anyone who has a guide for it, because the documentation isn't that clear for me
p
Hi @User We don't have a guide for SPAs yet. But the principle is the same as the server-side technology. You need: 1. Use the Ory Proxy on e.g. port 4000 2. Point the proxy to your React application e.g. port 3000 3. Point the proxy to your proxy URL 4. Navigate with your browser to the proxy on port 4000 5. Any API call from your react application should go to the proxy on port 4000 You can gather inspiration from the ExpressJS Guide
d
hmm okay, yeah trying to figure it out xd
p
You can also check out this thread https://ory-community.slack.com/archives/C02MR4DEEGH/p1646623854027749 You guys seem to be struggling with the same problem
g
@User That above ^ and its going to be a bit of work refactoring out the nextjs Router from all the pkg components that Ory built, if you aren’t using NextJS. But the Flow components that they built are solid. If you convert that Flow component to not be a react class component, let me know 🙏