From 787a17a2fc82ce56e67b2f731154cefe59388efc Mon Sep 17 00:00:00 2001 From: Emilio Tagua Date: Mon, 14 Sep 2020 11:48:57 -0300 Subject: [PATCH 1/4] Test on travis with newer versions of Python and Django --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 2308405..7fcdacb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,11 +2,13 @@ language: python python: - "2.7" - - "3.4" + - "3.8" env: - DJANGO_VERSION=1.7.8 - DJANGO_VERSION=1.8.1 + - DJANGO_VERSION=2.2.16 + - DJANGO_VERSION=3.1.1 install: # Install node 6 (current LTS as of January 2017) From c68dacc4d53449e5e1f049f317b1f542cabe33c0 Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Mon, 28 Dec 2020 21:46:38 +1100 Subject: [PATCH 2/4] docs: fix simple typo, browswer -> browser There is a small typo in examples/frontend-rendering-with-webpack/README.md. Should read `browser` rather than `browswer`. --- examples/frontend-rendering-with-webpack/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/frontend-rendering-with-webpack/README.md b/examples/frontend-rendering-with-webpack/README.md index f7b9908..05f9421 100644 --- a/examples/frontend-rendering-with-webpack/README.md +++ b/examples/frontend-rendering-with-webpack/README.md @@ -1,7 +1,7 @@ Running the example =================== -As mentioned in the ***Using React on the front-end*** section, [Webpack](https://webpack.github.io/) is used to bundle the respective js files into `dist.js` and included in `index.html`. To make React attributes like `onClick` etc. work, the app has to be re-rendered (along with all the props passed down) when it loads on the browswer. React is intelligent enough to not re-paint the browser and only update the changes, thus adding all the component properties. +As mentioned in the ***Using React on the front-end*** section, [Webpack](https://webpack.github.io/) is used to bundle the respective js files into `dist.js` and included in `index.html`. To make React attributes like `onClick` etc. work, the app has to be re-rendered (along with all the props passed down) when it loads on the browser. React is intelligent enough to not re-paint the browser and only update the changes, thus adding all the component properties. In this example, the basic_rendering example is modified to submit the Comment Form through ajax and update the Comment List by fetching the updated comments and rendering the application with new props. From fe54b3e78fda2952d22fb32d89bf91bdebc393b9 Mon Sep 17 00:00:00 2001 From: lolivera-eb <80480298+lolivera-eb@users.noreply.github.com> Date: Mon, 5 Jul 2021 14:50:42 -0300 Subject: [PATCH 3/4] update python version --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 7fcdacb..a61f73b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,8 @@ language: python python: - "2.7" + - "3.5" + - "3.7" - "3.8" env: @@ -9,6 +11,7 @@ env: - DJANGO_VERSION=1.8.1 - DJANGO_VERSION=2.2.16 - DJANGO_VERSION=3.1.1 + - DJANGO_VERSION=1.8.19 install: # Install node 6 (current LTS as of January 2017) From 1703ebe0805fd187f54a945ca03796ece518fca1 Mon Sep 17 00:00:00 2001 From: xav <73826012+gravybrux@users.noreply.github.com> Date: Thu, 29 Jun 2023 15:25:41 +0100 Subject: [PATCH 4/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a2d4e40..b73e30c 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ rendered = render_component('path/to/component.jsx', {'foo': 'bar'}) print(rendered) ``` -The object returned has two properties: +The object returned has three properties: - `markup` - the rendered markup - `props` - the JSON-serialized props