Tsukuru Tanimichi
Tsukuru Tanimichi
> Render any react component with a Provider on the server (set prerender as true) I'm also rendering react components with a redux Provider on the server with rails 5.1.4...
> add a redux example +1. Although Redux has nothing to do with this gem, many users of this gem seems to be struggling to use Redux with this gem....
@BookOfGreg You're so kind. Don't get burnt out over this 🙂
I don’t understand what you mean. Hydration is a matter of React’s SSR and it’s not related to Redux stroe. You can pass props to a component by using `react_component`...
Did you try this example? https://github.com/reactjs/react-rails/issues/878#issuecomment-368481036
> By 'hydration' I meant this: https://redux.js.org/recipes/serverrendering#client-js As I already told you, the hydration in the example has nothing to do with Redux. `hydrate` is a function of `react-dom` and...
You have to put components under the directory which you have specified in your packs files. The default value of the directory name is `components`. https://github.com/reactjs/react-rails#file-naming