Add state to code example [ci skip]