Sfoglia il codice sorgente

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

陈小聪 7 anni fa
parent
commit
6e97ea9299
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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>;