Cheng Lou
11 years ago
8 changed files with 15 additions and 15 deletions
@ -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: |
@ -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 |
|||
--- |
|||
|
Loading…
Reference in new issue