Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 806 Bytes

templatetags-params.md

File metadata and controls

14 lines (11 loc) · 806 Bytes

How to use the templatetags included in this library

react_render

This templatetag are used when you want to initialize a component

Accepts the following params:

  • component: The name of the component you want to include
  • identifier: Lets you override the autogenerated id with your own (Optional)
  • class: Allows you to append classes to the placeholder div (Optional)
  • props: A dict with props you want to send to your react component (Optional)
  • prop_*: Allows you to pass individual props to a component (Optional)
  • ssr_context: A dictionary with values you want to send to the SSR (Optional)
  • no_placeholder: Does not print the autogenerated placeholder div, ssr content are still printed, for this reason it is a recommended param when you work with Hypernova. (Optional)