State management in rails applications

How do Rails applications manage state the way React uses the Context API?