Breaking changes
TypeScript support out of the box
We're using react-docgen@5.0.0 now that supports TypeScript out of the box, no need for react-docgen-typescript anymore.
#750, #1354, #1500 by @okonet and @thecodejack
Remove initialState/setState/state
Remove custom state management for examples, use React Hooks instead.
- initialState = { value: '' }
+ const [value, setValue] = React.useState('')
<Textarea
- value={state.value}
+ value={value}
- onChange={e => setState({ value: e.target.value })}
+ onChange={e => setValue(e.target.value)}
/>
#1499, #1501 by @thecodejack