prometheusresearch-archive / react-forms

Forms library for React.
1.16k stars 112 forks source link

React js warning #144

Open CoderBlaine opened 8 years ago

CoderBlaine commented 8 years ago

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 (

); }

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 commented 8 years ago

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

eloff commented 7 years ago

Getting this warning too with 2.0.0-beta35