>passing props to root component is data layer
No it is not data. We pass props to components, just like you pass variables to print function in C. printf("Hello %var", var)
Too bad people like to name props: {props.data} thus confusing others.
No it is not data. We pass props to components, just like you pass variables to print function in C. printf("Hello %var", var)
Too bad people like to name props: {props.data} thus confusing others.
Like I said in the video, it's direct implication of how Virtual DOM works. Normally you wouldn't do that.