[guide] [react] add missing PascalCase guidance for prop names

This commit is contained in:
Jordan Harband
2020-08-03 09:36:24 -07:00
parent 973384be1b
commit 1dc71d3839

View File

@@ -267,7 +267,7 @@ This style guide is mostly based on the standards that are currently prevalent i
## Props
- Always use camelCase for prop names.
- Always use camelCase for prop names, or PascalCase if the prop value is a React component.
```jsx
// bad
@@ -280,6 +280,7 @@ This style guide is mostly based on the standards that are currently prevalent i
<Foo
userName="hello"
phoneNumber={12345678}
Component={SomeComponent}
/>
```