Today I Learned
React’s Developer Tools are accessible from Safari!
For the last three years I’ve been developing day-to-day in Safari. Whenver this practice comes up in conversation the first question is “what about React Developer Tools?” Until today my answer was to drop into Chrome.
Today I discovered that
react-devtools can be launched as a standalone application that can be connected to.
I wired this up in my Rails app with some development only logic.
With this in place, starting a Rails server with the appropriate environment flag does the trick.
bin/rails server CONNECT_TO_REACT_DEVTOOLS=yep