DefinitelyTyped/types/reactstrap
Sean Kelley 4563f43f69 Reactstrap: StatelessComponent -> Component where appropriate.
(See also #24846 for prior work.)

Update Reactstrap to declare components that aren't stateless functional components
as regular components. This allows consumers to use ref-related APIs, namely, the
`ref` prop and `forwardRef`.

Previously, Typescript would outright deny passing `ref`, and any attempts to use
`forwardRef` would cause very confusing type errors claiming that the component class
you were trying to refer to didn't exist (?!).

Note that many components actually are implemented as stateless components, and as such
their typings haven't been changed.

I found the list of components needing this update by checking out current master
of reactstrap (1d20d6d52c258428df39429e09c84b0ddcac76ee), then

```sh
cd src
rg 'extends (React.)?Component' -l | grep -v '__tests__'
```
2018-05-21 13:31:14 -07:00
..
lib Reactstrap: StatelessComponent -> Component where appropriate. 2018-05-21 13:31:14 -07:00
v4
index.d.ts Reactstrap - Remove myself as contributor to stop receiving notifications #25563 (#25585) 2018-05-07 13:21:56 -07:00
reactstrap-tests.tsx Reactstrap: StatelessComponent -> Component where appropriate. 2018-05-21 13:31:14 -07:00
tsconfig.json
tslint.json