mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
fix permalink, temporarily remove script field of Jekyll
This commit is contained in:
committed by
Connor McSheffrey
parent
b92c433c50
commit
ff9246316f
@@ -2,8 +2,7 @@
|
||||
id: inline-styles-tip
|
||||
title: Inline Styles
|
||||
layout: docs
|
||||
permalink: inline-styles.html
|
||||
script: "cookbook/inline-styles.js"
|
||||
permalink: inline-styles-tip.html
|
||||
---
|
||||
|
||||
In React, inline styles are not specified as a string, but as an object whose key is the camelCased version of the style name, and whose value is the style's value in string:
|
||||
|
||||
@@ -3,7 +3,6 @@ id: inline-styles
|
||||
title: Inline Styles
|
||||
layout: docs
|
||||
permalink: inline-styles.html
|
||||
script: "cookbook/inline-styles.js"
|
||||
---
|
||||
|
||||
### Problem
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
id: if-else-in-JSX-tip
|
||||
title: If-Else in JSX
|
||||
layout: docs
|
||||
permalink: inline-styles.html
|
||||
script: "cookbook/inline-styles.js"
|
||||
permalink: if-else-in-JSX-tip.html
|
||||
---
|
||||
|
||||
`if-else` statements don't work inside JSX, since JSX is really just sugar for functions:
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
id: if-else-in-JSX
|
||||
title: If-Else in JSX
|
||||
layout: docs
|
||||
permalink: inline-styles.html
|
||||
script: "cookbook/inline-styles.js"
|
||||
permalink: if-else-in-JSX.html
|
||||
---
|
||||
|
||||
### Problem
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
---
|
||||
id: self-closing-tag
|
||||
id: self-closing-tag-tip
|
||||
title: Self-Closing Tag
|
||||
layout: docs
|
||||
permalink: inline-styles.html
|
||||
script: "cookbook/inline-styles.js"
|
||||
permalink: self-closing-tag-tip.html
|
||||
---
|
||||
|
||||
In JSX, `<MyComponent />` alone is valid while `<MyComponent>` isn't.
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
id: self-closing-tag
|
||||
title: Self-Closing Tag
|
||||
layout: docs
|
||||
permalink: inline-styles.html
|
||||
script: "cookbook/inline-styles.js"
|
||||
permalink: self-closing-tag.html
|
||||
---
|
||||
|
||||
### Problem
|
||||
|
||||
Reference in New Issue
Block a user