i want to set state to initial state based on some condition using react.
what i am trying to do?
i have a checkfield named active. if user checks