diff --git a/src/content/blog/[VERSION]-dom-nesting-changes.md b/src/content/blog/[VERSION]-dom-nesting-changes.md new file mode 100644 index 00000000000..3e381cbf645 --- /dev/null +++ b/src/content/blog/[VERSION]-dom-nesting-changes.md @@ -0,0 +1,7 @@ +--- +title: DOM Nesting Validation Changes +--- + +### DOM Nesting Validation Changes + +- Added support for ` + /* ... */ + + + +``` + +--- + +If you get this warning because you pass props like `{...props}`, your parent component needs to "consume" any prop that is intended for the parent component and not intended for the child component. Example: + +**Bad:** Unexpected `layout` prop is forwarded to the `div` tag. + +```js +function MyDiv(props) { + if (props.layout === 'horizontal') { + // BAD! Because you know for sure "layout" is not a prop that