In react I need to set a prop based on the return value from a function. I want to try to avoid using state for this and I am getting a variable from localstorage so that the us