A common mistake is syncing state with useEffect. If a value can be calculated from existing props or state, compute it during render! Don't put it in state.
FullName to remove the fullName state and the useEffectfullName directly in the component bodySubmit your code to see test results