Skip to content

Commit e3ceeb4

Browse files
committed
Documentation improvements
1 parent dc33836 commit e3ceeb4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,25 +80,25 @@ on the server and send the markup down on the initial request for faster page lo
8080
and to allow search engines to crawl your pages for SEO purposes.
8181

8282
Returns a `RenderedComponent` instance, which can be passed directly into templates
83-
to output the component's HTML.
83+
to output the component's HTML and to mount the component for client-side interactivity.
8484

8585
Arguments:
8686

87-
- **path_to_source** — a path to a JS or JSX file which exports the component. If the
88-
path is relative, django's static file finders will be used to find the file.
87+
- **path_to_source** — a path to a file which exports the component. If the path is relative,
88+
django's static file finders will be used to find the file.
8989
- **props** *optional* — a dictonary that will be serialised to JSON and passed to
9090
the component during the renderering process.
9191
- **to_static_markup** *optional* — a boolean indicating that React's `renderToStaticMarkup`
92-
method should be used for the rendering. Defaults to `False`, which causes React's
93-
`renderToString` method to be used.
92+
method should be used, rather than `renderToString`.
9493
- **bundle** *optional* - a boolean indicating that the component should be bundled for
9594
reuse on the client-side. If `translate` or `watch_source` are used, this argument is
9695
ignored.
9796
- **translate** *optional* - a boolean indicating that the component should be translated
9897
from JSX and ES6/7 before rendering. Components are translated with
9998
[Babel](http://babeljs.io).
100-
- **watch_source** *optional* — a boolean indicating that the renderer should watch your source
101-
files and rebuild the component whenever it changes. If not defined, defaults to `DEBUG`.
99+
- **watch_source** *optional* — a boolean indicating that your source files should be watched
100+
for changes. When changes are detected, the component is rebuilt in background, ready for
101+
the next request. If not defined, defaults to `django.conf.settings.DEBUG`.
102102
- **json_encoder** *optional* — a class which is used to encode the props to JSON. Defaults
103103
to `django.core.serializers.json.DjangoJSONEncoder`.
104104

0 commit comments

Comments
 (0)