This django library allows you to add React (16+) components into your django templates.
- Include react components using django templatetags
- Unlimited amount of components in one view
- Support custom models (that is from the beginning not json-serializable)
- Server side rendering
Install the library with pip:
$ pip install django_react_templatetags
You should first read Getting started, then go through these topics:
- Settings
- Adding a single component
- Adding multiple components
- Example application
- Working with models
- Server side rendering
- FAQ
This library include tests, just run python runtests.py
You can also run separate test cases: python runtests.py tests.test_filters.ReactIncludeComponentTest
Want to contribute? Awesome. Just send a pull request.
Django-React-Templatetags is released under the MIT License.