react-blocks icon indicating copy to clipboard operation
react-blocks copied to clipboard

Warning: Unknown props `layout`, `horizontal`, `justifyBetween` on <div> tag.

Open corneyl opened this issue 7 years ago • 2 comments

I get the following error:

Warning: Unknown props `layout`, `horizontal`, `justifyBetween` on <div> tag. Remove these props from the element. For details, see https://fb.me/react-unknown-prop

With the following code:

import React from 'react'
import {render} from 'react-dom'
import Block from 'react-blocks';

render(
    <Block layout horizontal justifyBetween>
        Test
    </Block>,
    document.getElementById('app')
);

Using these versions:

npm list react react-dom react-blocks
+-- [email protected]
+-- [email protected]
| `-- [email protected]
`-- [email protected]

Probably a bug?

corneyl avatar Jan 20 '17 19:01 corneyl

Same, getting the same warnings.

Might have to do with this? https://github.com/whoisandie/react-blocks/blob/master/src/block.js#L11

pencilcheck avatar Jan 25 '17 05:01 pencilcheck

This project doesn't properly support React since v15.2.

This is true in other projects as well, that fixed it. e.g. https://github.com/okonet/react-dropzone/issues/193

advance512 avatar Feb 06 '17 13:02 advance512