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),
});
}