https://overreacted.io/how-does-the-development-mode-work/ suggests that if(__DEV__) for dev-only code paths is a convention established beyond the React community, so it might be worth supporting.
Not yet sure what that might look like, exactly; suggestions welcome.