Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React js warning #144

Open
CoderBlaine opened this issue Sep 19, 2016 · 2 comments
Open

React js warning #144

CoderBlaine opened this issue Sep 19, 2016 · 2 comments

Comments

@CoderBlaine
Copy link

Hi,

When I'm running your example code I receive a warning in the error console. "unknow prop formvalue on

tag". This appears to be caused by the value "formValue" in the Fieldset component.

Have you encountered this before? My example code is below..

`class Form extends React.Component {

constructor(props) {
super(props)
let formValue = createValue({
value: props.value,
onChange: this.onChange.bind(this)
})
this.state = {formValue}
}

onChange(formValue) {
this.setState({formValue})
}

render() {
return (





)
}
}

function EditCompany() {
return (


<FormattedMessage {...messages.header} />

<Form value={{firstName: 'Michael', lastName: 'Jackson'}} />


);
}

export default EditCompany;`

Console warning:

warning.js:36 Warning: Unknown propformValueon <div> tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop in div (created by Fieldset) in Fieldset (created by Form) in Form (created by EditCompany) in div (created by Well) in Well (created by EditCompany) in div (created by EditCompany) in EditCompany (created by RouterContext) in div (created by Col) in Col (created by App) in div (created by Row) in Row (created by App) in div (created by Grid) in Grid (created by App) in App (created by RouterContext) in RouterContext (created by Router) in ScrollBehaviorContainer (created by Router) in Router in IntlProvider (created by LanguageProvider) in LanguageProvider (created by Connect(LanguageProvider)) in Connect(LanguageProvider) in Provider

@DasithKuruppu
Copy link

I seem to be getting the same warning. And only beta version of this is working , the other stable one is not

@eloff
Copy link

eloff commented Mar 7, 2017

Getting this warning too with 2.0.0-beta35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants