Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: ReactJs tech question

tqminh free asked 4 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?


Piotr Glejzer staff answered 4 years ago



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

  • ForumUser: 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