You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the sake of coding additional fields in the future, Field JSX classes should be consistent in implementation of properties such as componentWillMount and componentWillReceiveProps.
Add setValue function to handle transition between different states
setValue should determine validity based on passed props object
Move console.* functions to after initial variable declarations in each function
Variable declarations with undefined values should proceed those with defined values.
Reorganize method in this order: getInitialState, componentWillMount, componentWillReceiveProps, setValue, onXChange, [other functions], render
getInitialState should return value as an empty string instead of null when the field is empty (unless otherwise required by the component)
State values like status, display, and displayState should be condensed to one or two consistently-utilized terms
For the sake of coding additional fields in the future, Field JSX classes should be consistent in implementation of properties such as
componentWillMountandcomponentWillReceiveProps.setValuefunction to handle transition between different statessetValueshould determine validity based on passed props objectconsole.*functions to after initial variable declarations in each functiongetInitialState,componentWillMount,componentWillReceiveProps,setValue,onXChange,[other functions],rendergetInitialStateshould returnvalueas an empty string instead of null when the field is empty (unless otherwise required by the component)status,display, anddisplayStateshould be condensed to one or two consistently-utilized terms