Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 481 Bytes

problem-5.md

File metadata and controls

22 lines (19 loc) · 481 Bytes

Problem Statement 5

React is fast and efficient, doesn’t mean it does not take time

Requirements:

  • React js/React Native

Problem Goal:

  • Find the React optimization issue in the below code

Problem Description:

function FormComponent {
 const error = useInputError('name');
  return (
   <View>
      <GetProfileInputForm />
      <button disabled={Boolean(error)}>Continue</button>
   </View>
 );
}

How and why can the above code affect UI interaction?