({ changeVisibility })
| 73 | )(Counter); |
| 74 | |
| 75 | function Visibility({ changeVisibility }) { |
| 76 | return ( |
| 77 | <div> |
| 78 | <button onClick={ () => changeVisibility(true) }>Visible</button> |
| 79 | <button onClick={ () => changeVisibility(false) }>Hidden</button> |
| 80 | </div> |
| 81 | ); |
| 82 | } |
| 83 | const VisibilityConnected = connect( |
| 84 | null, |
| 85 | dispatch => ({ |
nothing calls this directly
no test coverage detected