Releases: styleguidist/react-styleguidist
Releases · styleguidist/react-styleguidist
v10.5.0
v10.4.2
v10.4.1
v11.0.0-beta2
Changes after v11.0.0-beta1.
Prefer default exports over named exports
Use the default export of a component when autoimporting in examples. Might break some of your examples if your component have both, default and named, exports.
v10.4.0
v11.0.0-beta1
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
v10.3.2
v10.3.1
v10.3.0
v10.2.1
10.2.1 (2019-11-18)
Build
- Add funding field to package.json (266f5d4)
Chore
- Convert some components to TypeScript (#1465) (cd00ecc), closes #1465
- Progress on support of TypeScript (#1463, refs #1352) (5326aa5), closes #1463 #1352
Docs
- Create React App example results in error (#1446) (933c175), closes #1446
- Update theme links (#1468) (7564df9), closes #1468