https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
f

famous-carpenter-71953

03/07/2023, 3:04 AM
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

future-teacher-7046

03/07/2023, 3:40 AM
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

famous-carpenter-71953

03/07/2023, 6:29 AM
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.
20 Views