Whereever you might fall on the left-right spectrum, this law is sexist, discriminatory, idiotic, and an escalation of the brewing gender war.
If the law required a 50/50 gender split on boards, or at least one member of each gender or similar, I wouldn't find it offensive. As is, it allows all-female boards and bans all-male ones.
Laws like this are what energize the Trump political base.