github styleguidist/react-styleguidist v4.6.0

latest releases: v13.1.3, v13.1.2, v13.1.1...
7 years ago

New feature

Public methods documentation

Show component public methods in the style guide, the same way as props. Tag your method with  JSDoc tag to mark mark it as public.

/**
 * Sets the counter to a particular value.
 *
 * @public
 * @param {Number} newValue - New value for the counter.
 */
set(newValue) {
  this.setState({
    value: parseInt(newValue, 10),
  });
}

PR #280 by @n1313

Don't miss a new react-styleguidist release

NewReleases is sending notifications on new releases.