Hello, has anyone tried to connect to the SDK with...
# ask-questions
f
Hello, has anyone tried to connect to the SDK with a React on Rails app? From the docs, I see that you need to wrap your app with the
GrowthBookProvider
component but how can I do so with a React on Rails app? I’m trying to connect the frontend to the SDK
f
I'm not very familiar with React on Rails. The React SDK and
GrowthBookProvider
will work fine for client side rendering. If you want to do SSR, I'm not sure exactly how that would work with Rails. We do have some docs on SSR which are based on Next.js which may be helpful https://docs.growthbook.io/lib/react#server-side-rendering-ssr
f
Thanks! Based on how
getServerSideProps
works, it seems like I would need to retrieve the relevant features/values and pass the props from the rails backend to the react frontend.