React Conditional Use Effect Definition Example