A simple React hook for toggling something on and off with a bookmark link. If the feature is only meant for internal testing etc, this hook makes it "safe" to release a feature into production without letting end users see it. (Of course, nerdy developers with development tools will be able to find it.)
You can use a simple javascript:url as a bookmarklet that triggers a custom event. The name of the
event shoud be identical with the featureName
in the code below:
Drag this link to the bookmarks bar to toggle Fancy Feature in our product: