Skip to content

v4.6.0

Compare
Choose a tag to compare
@sapegin sapegin released this 10 Jan 08:10

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