pushtell / react-ab-test

A/B testing React components and debug tools. Isomorphic with a simple, universal interface. Well documented and lightweight. Tested in popular browsers and Node.js. Includes helpers for Mixpanel and Segment.com.
MIT License
752 stars 112 forks source link

User can hide the debugger with a keyboard shortcut #4

Open wehriam opened 8 years ago

wehriam commented 8 years ago

The debugger should have an optional visible property, defaulting to true, that determines visibility on load.

Pressing ctrl-h should toggle the visiblity.

visible: React.PropTypes.bool
wehriam commented 8 years ago

I created https://github.com/pushtell/keypress-combination as most combination keypress event listeners were larger than required.