- React is decrative means you have no need to doing vanilla javascript kind of stuff
ex. const para = document.createElement('p');
para.textContent = 'This is Also Visible';
document.getElementById('root').append(paar);
- In React we are used Composition for wrapping in dom container, it means we use children props for that.
How to Update the Multiple state key of React |
---|
- this is not best practice at all, because any other developer write your code it will messed up this thing
Debugging React Application |
---|
- BreakPoint is key thing Every React Develoeper need to Master in to easily crack the BUG
JSX Limitation, Ref and workAround |
---|
- JSX is not Return the More than Root Component
- In Vanilla JS we will do it, but JSX and Vanilla both are different
- In
JSX we return multiple element through Arary
Div Soup Cause Problem |
---|
- Div Soup Case problem because React check each and every Dom statment, so it slow down performance, hamper styling and messed up the code
ReactDom.createPortal |
---|