-
I've implemented a new [``](https://www.lightningdesignsystem.com/components/dueling-picklist/) component for my team's internal project (Salesforce employee), which I would like to contribute.
Pr…
-
PropTypes are not valid
use propTypes
p should be small
showing error while using capital
-
Hi,
I'm trying the following:
I have some propTypes I want to define central and reuse it in many components.
There fore I have create a file "baseTypes"
```
import PropTypes from 'prop-types'
…
-
`E/ReactNativeJS(29533): undefined is not an object (evaluating '_react2.PropTypes.number')`
-
The `react/require-default-props` rule configured with `ignoreFunctionalComponents: true` produces false positives for functional components that use `React.forwardRef`, like the following:
```jsx
…
-
https://github.com/bendman/open-adopt/blob/develop/app/components/InputToggles/index.js#L6
why not use a flow type instead for compile time assurance?
e.g.
```javascript
class InputToggles ext…
-
After the upgrade to React 15.5.8, this warning now appears in the console:
"Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead."
…
ghost updated
7 years ago
-
It'd be amazing if we could add, remove and edit PropTypes _from the user interface_ and them being saved to the component!
-
givent
``` js
import React from 'react';
const user = React.PropTypes.shape({
email_address: React.PropTypes.string,
name: React.PropTypes.string,
})
export default class Foobar extends React.C…
-
Let's say I have an Input component with these prop types:
```
Input.propTypes = {
value: PropTypes.string,
error: PropTypes.bool,
valid: PropTypes.bool,
onChange: PropTypes.func,
m…
lopis updated
6 years ago