GUI code is often harder to test. The nice thing about static guarantees (eg JSX, eslint, typescript) is they work well with GUIs.