github styleguidist/react-styleguidist v11.0.0-beta1

latest releases: v13.1.3, v13.1.2, v13.1.1...
pre-release4 years ago

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

Don't miss a new react-styleguidist release

NewReleases is sending notifications on new releases.