This reverts commit dbc07220ae9188a3fb2bdea3d826ff7f48532a2e. # Conflicts: # packages/babel-helper-builder-react-jsx/src/index.js
This commit is contained in:
parent
a58893d1e3
commit
54f072991d
@ -19,6 +19,13 @@ You can turn on the 'throwIfNamespace' flag to bypass this warning.`,
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
visitor.JSXSpreadChild = function(path) {
|
||||||
|
throw path.buildCodeFrameError(
|
||||||
|
"Spread children are not supported in React.",
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
visitor.JSXElement = {
|
visitor.JSXElement = {
|
||||||
exit(path, file) {
|
exit(path, file) {
|
||||||
const callExpr = buildElementCall(path, file);
|
const callExpr = buildElementCall(path, file);
|
||||||
|
|||||||
@ -0,0 +1 @@
|
|||||||
|
<div>{...children}</div>;
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"throws": "Spread children are not supported in React."
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user