Browse Source

fix: React does not recognize the `staticContext` prop on a DOM element. (#3582)

陈小聪 7 năm trước cách đây
mục cha
commit
6e97ea9299
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/layouts/BlankLayout.js

+ 1 - 1
src/layouts/BlankLayout.js

@@ -1,3 +1,3 @@
 import React from 'react';
 
-export default props => <div {...props} />;
+export default ({ children }) => <div>{children}</div>;