Check out example codes for "rails render partial". It will help you in understanding the concepts better.

Code Example 1

<%= render 'partials/foo', comments: @comments %>

Learn ReactJs, React Native from akashmittal.com