Sollicitatievraag bij Capgemini

in array methods 1 filter in react functional and class component.

Antwoord op sollicitatievraag

Anoniem

3 feb 2022

1 filter method creates a new array filled with elements that pass a test provided by a function 2 functional component is state less component and is just a plain javascript function that accepts props as an argument and returns a react element. A class component requires you to extend from React component and create a render function which returns a React element

3