MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / Visibility

Function Visibility

code/redux/public/app.js:21921–21942  ·  view source on GitHub ↗
(_ref2)

Source from the content-addressed store, hash-verified

21919})(Counter);
21920
21921function Visibility(_ref2) {
21922 var changeVisibility = _ref2.changeVisibility;
21923
21924 return _react2.default.createElement(
21925 'div',
21926 null,
21927 _react2.default.createElement(
21928 'button',
21929 { onClick: function onClick() {
21930 return changeVisibility(true);
21931 } },
21932 'Visible'
21933 ),
21934 _react2.default.createElement(
21935 'button',
21936 { onClick: function onClick() {
21937 return changeVisibility(false);
21938 } },
21939 'Hidden'
21940 )
21941 );
21942}
21943var VisibilityConnected = (0, _reactRedux.connect)(null, function (dispatch) {
21944 return {
21945 changeVisibility: function changeVisibility(value) {

Callers

nothing calls this directly

Calls 1

changeVisibilityFunction · 0.85

Tested by

no test coverage detected