Skip to content

Commit 7a9c470

Browse files
committed
docs(component): add JSDoc
1 parent 2a497a8 commit 7a9c470

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/react-toggle-pattern.js

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ export default class TogglePattern extends React.Component {
77
return Object.keys(this.props);
88
}
99

10+
/**
11+
* get components from `children` that matches key and value with own props.
12+
* @returns {ReactComponent[]}
13+
*/
1014
getMatchedComponent() {
1115
const children = [].concat(this.props.children);
1216
const flagKeyNames = this.getFlagNames();

0 commit comments

Comments
 (0)