Unfortunately, you haven't provided complete information about the structure of your component, so it's likely that no one will be able to give you a definitive answer. If this function is defined outside the component, it must either be imported directly or passed to the component as props to be accessed. If you're using a helper function, you need to ensure it receives the required parameters; otherwise, React won't recognize what getInfo.updateInfo() is and will throw an error.