Closed utkarsh-1602 closed 11 months ago
concept used : Object Destructuring
The concept used here is called "object destructuring." In JavaScript, object destructuring allows you to extract properties from objects and bind them to variables in a more concise way. In the provided code snippet, the syntax { params } is an example of object destructuring, where it extracts the params property from the props object.
Why params are extracted like this ?