InterviewSolution
| 1. |
Explain setNativeProps. Does it create Performance issues and how is it used ? |
|
Answer» It is sometimes necessary to make changes directly to a component without using state/props to trigger a re-render of the entire SUBTREE. When using REACT in the browser, for example, you sometimes NEED to directly modify a DOM node, and the same is true for views in mobile apps. setNativeProps is the React Native equivalent to setting properties directly on a DOM node. |
|