To maintain state after a page refresh in React.js just Set localStorage. First of all, set localStorage when setting my state and then get the value from localStorage again inside of the getInitialState callback. You can learn this better by given code. Just try this method to solve your error. getInitialState: function() { var selectedOption = localStorage.getItem( 'SelectedOption' ) || 1; return { selectedOption: selectedOption }; },