Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 952 Bytes

REMINDER.md

File metadata and controls

39 lines (32 loc) · 952 Bytes

REMINDER

Sources

Notes

Setting field value by using "ref" attribute :

React.findDOMNode(this.refs.myFieldName).value = myNewValue;

Get field value by using "ref" attribute :

React.findDOMNode(this.refs.myFieldName).value.trim()

Important ! This trick cannot work for now :

handleChangeField: function(event) {
    var state = { formDirty: true };
    state[event.target.name] = event.target.value;
    this.setState(state);
},

How to set the style attribute :

style={marginRight: spacing + 'em'}