From c4bf9aa5bd029c440e9123a3c673578476cdeadb Mon Sep 17 00:00:00 2001 From: Cheng Lou Date: Wed, 30 Oct 2013 15:06:16 -0400 Subject: [PATCH] title case for entry titles; fix two entry names --- cookbook/05-jsx-root-node-count.md | 4 ++-- ...-style-prop-value-px.md => 06-style-props-value-px.md} | 6 +++--- ...07-children-prop-type.md => 07-children-props-type.md} | 8 ++++---- cookbook/08-controlled-input-null-value.md | 4 ++-- ...ponentWillReceiveProps-not-triggered-after-mounting.md | 2 +- cookbook/10-props-in-getInitialSate-as-anti-pattern.md | 2 +- cookbook/11-dom-event-listeners.md | 2 +- cookbook/12-initial-ajax.md | 2 +- 8 files changed, 15 insertions(+), 15 deletions(-) rename cookbook/{06-style-prop-value-px.md => 06-style-props-value-px.md} (84%) rename cookbook/{07-children-prop-type.md => 07-children-props-type.md} (88%) diff --git a/cookbook/05-jsx-root-node-count.md b/cookbook/05-jsx-root-node-count.md index 10f9ab06..b1071d56 100644 --- a/cookbook/05-jsx-root-node-count.md +++ b/cookbook/05-jsx-root-node-count.md @@ -1,10 +1,10 @@ --- id: jsx-root-node-count -title: Maximum number of JSX root nodes +title: Maximum Number of JSX Root Nodes layout: cookbook permalink: jsx-root-node-count.html prev: self-closing-tag.html -next: style-prop-value-px.html +next: style-props-value-px.html --- Currently, in a component's `render`, you can only return one node; if you have, say, a list of `div`s to return, you must wrap your components within a `div`, `span` or any other component. diff --git a/cookbook/06-style-prop-value-px.md b/cookbook/06-style-props-value-px.md similarity index 84% rename from cookbook/06-style-prop-value-px.md rename to cookbook/06-style-props-value-px.md index 642f33d3..f23cb67e 100644 --- a/cookbook/06-style-prop-value-px.md +++ b/cookbook/06-style-props-value-px.md @@ -1,10 +1,10 @@ --- id: style-prop-value-px -title: Shorthand for specifying pixel values in style prop +title: Shorthand for Specifying Pixel Values in style props layout: cookbook -permalink: style-prop-value-px.html +permalink: style-props-value-px.html prev: jsx-root-node-count.html -next: children-prop-type.html +next: children-props-type.html --- When specifying a pixel value for your inline `style` prop, React automatically appends the string "px" for you after your number value, so this works: diff --git a/cookbook/07-children-prop-type.md b/cookbook/07-children-props-type.md similarity index 88% rename from cookbook/07-children-prop-type.md rename to cookbook/07-children-props-type.md index c22699ed..65b8bbc9 100644 --- a/cookbook/07-children-prop-type.md +++ b/cookbook/07-children-props-type.md @@ -1,9 +1,9 @@ --- -id: children-prop-type -title: Type of the children prop +id: children-props-type +title: Type of the Children props layout: cookbook -permalink: children-prop-type.html -prev: style-prop-value-px.html +permalink: children-props-type.html +prev: style-props-value-px.html next: controlled-input-null-value.html --- diff --git a/cookbook/08-controlled-input-null-value.md b/cookbook/08-controlled-input-null-value.md index 8c209208..2caa535c 100644 --- a/cookbook/08-controlled-input-null-value.md +++ b/cookbook/08-controlled-input-null-value.md @@ -1,9 +1,9 @@ --- id: controlled-input-null-value -title: Value of null for controlled input +title: Value of null for Controlled Input layout: cookbook permalink: controlled-input-null-value.html -prev: children-prop-type.html +prev: children-props-type.html next: componentWillReceiveProps-not-triggered-after-mounting.html --- diff --git a/cookbook/09-componentWillReceiveProps-not-triggered-after-mounting.md b/cookbook/09-componentWillReceiveProps-not-triggered-after-mounting.md index 45e22e32..947d1f9d 100644 --- a/cookbook/09-componentWillReceiveProps-not-triggered-after-mounting.md +++ b/cookbook/09-componentWillReceiveProps-not-triggered-after-mounting.md @@ -1,6 +1,6 @@ --- id: componentWillReceiveProps-not-triggered-after-mounting -title: componentWillReceiveProps not triggered after mounting +title: componentWillReceiveProps Not Triggered After Mounting layout: cookbook permalink: componentWillReceiveProps-not-triggered-after-mounting.html prev: controlled-input-null-value.html diff --git a/cookbook/10-props-in-getInitialSate-as-anti-pattern.md b/cookbook/10-props-in-getInitialSate-as-anti-pattern.md index ebe195e8..6b0a717f 100644 --- a/cookbook/10-props-in-getInitialSate-as-anti-pattern.md +++ b/cookbook/10-props-in-getInitialSate-as-anti-pattern.md @@ -1,6 +1,6 @@ --- id: props-in-getInitialSate-as-anti-pattern -title: props in getInitialState is an anti-pattern +title: Props in getInitialState Is an Anti-pattern layout: cookbook permalink: props-in-getInitialSate-as-anti-pattern.html prev: componentWillReceiveProps-not-triggered-after-mounting.html diff --git a/cookbook/11-dom-event-listeners.md b/cookbook/11-dom-event-listeners.md index d0a89a5a..314f7e85 100644 --- a/cookbook/11-dom-event-listeners.md +++ b/cookbook/11-dom-event-listeners.md @@ -1,6 +1,6 @@ --- id: dom-event-listeners -title: DOM event listeners in a component +title: DOM Event Listeners in a Component layout: cookbook permalink: dom-event-listeners.html prev: props-in-getInitialSate-as-anti-pattern.html diff --git a/cookbook/12-initial-ajax.md b/cookbook/12-initial-ajax.md index 700fdcd3..9923e284 100644 --- a/cookbook/12-initial-ajax.md +++ b/cookbook/12-initial-ajax.md @@ -1,6 +1,6 @@ --- id: initial-ajax -title: Load initial data via AJAX +title: Load Initial Data via AJAX layout: cookbook permalink: initial-ajax.html prev: dom-event-listeners.html