Last time in JS411
Explain the use cases for, and differences between — bind
, apply
and call
.
Bind method creates a copy of the function and sets the “this” keyword, while the call and apply methods sets “this” keyword and calls the function immediately. — https://blog.bitsrc.io/understanding-call-bind-and-apply-methods-in-javascript-33dbf3217be
How do you handle code organization and dependency management?
Both of these are subjects I feel I need to improve on significantly. Currently, I often follow templates to get started.
What is React.cloneElement
? And the difference with this.props.children
?
React.cloneElement returns a copy of a specified element. Then props can be passed into it allowing the parent element to influence and modify the child element.