@@ -82,26 +82,24 @@ and to allow search engines to crawl your pages for SEO purposes.
82
82
Returns a ` RenderedComponent ` instance, which can be passed directly into templates
83
83
to output the component's HTML.
84
84
85
- ** Note** : components are loaded with [ Babel] ( http://babeljs.io ) which enables you
86
- to use JSX + ES6/7 in your components.
87
-
88
85
Arguments:
89
86
90
- - ` path_to_source ` — a path to a JS or JSX file which exports the component. If the
87
+ - ** path_to_source** — a path to a JS or JSX file which exports the component. If the
91
88
path is relative, django's static file finders will be used to find the file.
92
- - ` props ` * optional* — a dictonary that will be serialised to JSON and passed to
89
+ - ** props** * optional* — a dictonary that will be serialised to JSON and passed to
93
90
the component during the renderering process.
94
- - ` to_static_markup ` * optional* — a boolean indicating that React's ` renderToStaticMarkup `
91
+ - ** to_static_markup** * optional* — a boolean indicating that React's ` renderToStaticMarkup `
95
92
method should be used for the rendering. Defaults to ` False ` , which causes React's
96
93
` renderToString ` method to be used.
97
- - ` bundle ` * optional* - a boolean indicating that the component should be bundled for
94
+ - ** bundle** * optional* - a boolean indicating that the component should be bundled for
98
95
reuse on the client-side. If ` translate ` or ` watch_source ` are used, this argument is
99
96
ignored.
100
- - ` translate ` * optional* - a boolean indicating that the component should be translated
101
- from JSX and ES6/7 before rendering.
102
- - ` watch_source ` * optional* — a boolean indicating that the renderer should watch your source
97
+ - ** translate** * optional* - a boolean indicating that the component should be translated
98
+ from JSX and ES6/7 before rendering. Components are translated with
99
+ [ Babel] ( http://babeljs.io ) .
100
+ - ** watch_source** * optional* — a boolean indicating that the renderer should watch your source
103
101
files and rebuild the component whenever it changes. If not defined, defaults to ` DEBUG ` .
104
- - ` json_encoder ` * optional* — a class which is used to encode the props to JSON. Defaults
102
+ - ** json_encoder** * optional* — a class which is used to encode the props to JSON. Defaults
105
103
to ` django.core.serializers.json.DjangoJSONEncoder ` .
106
104
107
105
0 commit comments