From e940a565a7cb2238e0a1cba783f7d2c88d7123bc Mon Sep 17 00:00:00 2001 From: KuanYu Chu Date: Fri, 25 Oct 2019 10:32:46 +0800 Subject: [PATCH 1/3] Add doc for renderReactStatic --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 57d901c..be9047c 100644 --- a/README.md +++ b/README.md @@ -25,3 +25,6 @@ export default renderReact( MyComponent, ); ``` + +If you want to [use React as a simple static page generator, +as stripping away the extra attributes can save some bytes](https://reactjs.org/docs/react-dom-server.html#rendertostaticmarkup), `renderReactStatic` is what you want: From 3bb74008f47f29ad79bb497f0818685ee7b76776 Mon Sep 17 00:00:00 2001 From: KuanYu Chu Date: Fri, 25 Oct 2019 10:34:03 +0800 Subject: [PATCH 2/3] FIx renderReactStatic description --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index be9047c..87f133d 100644 --- a/README.md +++ b/README.md @@ -26,5 +26,5 @@ export default renderReact( ); ``` -If you want to [use React as a simple static page generator, +If you want to [render a static page, as stripping away the extra attributes can save some bytes](https://reactjs.org/docs/react-dom-server.html#rendertostaticmarkup), `renderReactStatic` is what you want: From e4371ae6c952ff4ccb12fa191c471cc63f12c397 Mon Sep 17 00:00:00 2001 From: KuanYu Chu Date: Fri, 25 Oct 2019 10:37:53 +0800 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 87f133d..a37da14 100644 --- a/README.md +++ b/README.md @@ -27,4 +27,4 @@ export default renderReact( ``` If you want to [render a static page, -as stripping away the extra attributes can save some bytes](https://reactjs.org/docs/react-dom-server.html#rendertostaticmarkup), `renderReactStatic` is what you want: +as stripping away the extra attributes can save some bytes](https://reactjs.org/docs/react-dom-server.html#rendertostaticmarkup), `renderReactStatic` is what you want.