ReactJs tech question


Topic: ReactJs tech question

tqminh asked 5 years ago

Expected behavior I see the following definition in the code like this:

toggleTab = tab => () => { const { activeItem } = this.state; if (activeItem !== tab) { this.setState({ activeItem: tab }); } };

It is something like arrow function but a bit different. Can I know the name of the technique you used above?


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.25.2
  • Device: Any
  • Browser: Any
  • OS: Any
  • Provided sample code: No
  • Provided link: No
Tags