Removing modState hack
runState now gets React state inside IO