We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a497a8 commit 7a9c470Copy full SHA for 7a9c470
src/react-toggle-pattern.js
@@ -7,6 +7,10 @@ export default class TogglePattern extends React.Component {
7
return Object.keys(this.props);
8
}
9
10
+ /**
11
+ * get components from `children` that matches key and value with own props.
12
+ * @returns {ReactComponent[]}
13
+ */
14
getMatchedComponent() {
15
const children = [].concat(this.props.children);
16
const flagKeyNames = this.getFlagNames();
0 commit comments