There should be a global debug value, which could be on by default in our local builds. It would allow statements such as if (debug) ... as well as us creating a component such as <Debug> <span>{...info...}</span> </Debug>. Additionally, log.debug would only fire on a truthy debug flag.
There should be a global debug value, which could be on by default in our local builds. It would allow statements such as
if (debug) ...
as well as us creating a component such as<Debug> <span>{...info...}</span> </Debug>
. Additionally,log.debug
would only fire on a truthy debug flag.