Closed Ugarz closed 8 years ago
Did you import Col component? I mean are there such code const {Grid, Row, Col} = require('react-flexbox-grid'); in your file?
For sure :
import { Grid, Col, Row } from 'react-flexbox-grid';
Here is the full code where I get this warning :
import React from 'react';
import { Grid, Col, Row } from 'react-flexbox-grid';
import { Helper, HelperContent, Input } from 'presentationals';
import PageComponents from '../';
export default class DocHelper extends PageComponents {
state = {
}
changeState = (focusedElement) => {
this.setState({
focusedElement
});
}
render() {
const datas = {
input1: 'Veuillez rentrer votre prénom',
input2: 'Veuillez rentrer votre nom',
input3: 'Veuillez rentrer votre email'
};
const content = (
<div>
<article className={this.baseStyle.categoryWrapper}>
<h2>DocHelper</h2>
<ul>
{/* Dark theme */}
<li className={this.baseStyle.twoCols}>
<h3>DocHelper</h3>
<div style={{ position: 'relative' }}>
<Grid>
<Row>
<Col xs={12} sm={6}>
<Input label="Met ton prénom !" name="firstname" ref="John" onFocus={() => this.changeState(this.refs.John)} />
<Input label="Ton nom, plus vite que ça !" name="lastname" ref="Doe" onFocus={() => this.changeState(this.refs.Doe)} />
<Input label="Et ton âge pour la NSA !" name="age" ref="age" onFocus={() => this.changeState(this.refs.age)} />
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
</Col>
<Col xs={12} sm={6}>
<Helper focusedElement={this.state.focusedElement} >
<HelperContent datas={datas} >
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam ac libero et velit tincidunt dictum at non lacus.<br/>
Phasellus eget dui non tortor malesuada ultrices vitae quis ex.
</p>
<img src="http://placehold.it/250x150" />
<ul>
<li>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam ac libero et velit tincidunt dictum at non lacus.</li>
<li>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam ac libero et velit tincidunt dictum at non lacus.</li>
<li>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam ac libero et velit tincidunt dictum at non lacus.</li>
</ul>
</HelperContent>
</Helper>
</Col>
</Row>
</Grid>
</div>
</li>
</ul>
</article>
</div>
);
return super.render('Checkboxe', content);
}
}
I also get these errors, along with a plethora of other console errors when using this library. The issue is that this library doesn't properly filter the props it gives to its child div
node, it just passes them all (including the props it uses internally) and that's why React is complaining.
I see this too. Any plan to rewrite the code?
0.10.2 solved the problem for me.
Edit : still have the error for the offset, though.
Solved for me too by switching 0.10.2
.
I still seem to be getting those warnings on 0.10.2
I too am getting the same issue with 0.10.2
.
Same here 0.10.2
, but still plenty of warnings
Context Hi there, I'm using
react-flexbox-grid
on a React-Redux project. Reading this example on how to implementreact-flexbox-grid
Following :Issue Here's my code
When using this I get some warnings
When I remove
xs
sm
all warnings disapear. Does anyone has an Idea on what is going on ?