MCPcopy Create free account
hub / github.com/flyfloor/react-component / initDate

Function initDate

component/DatePicker.js:24–27  ·  view source on GitHub ↗
(defaultValue=this.props.value)

Source from the content-addressed store, hash-verified

22 },
23
24 initDate(defaultValue=this.props.value){
25 const {year, month, day} = dateStr2Obj(defaultValue, this.dateParams());
26 return obj2DateStr(year, month, day);
27 },
28
29 dateParams(){
30 const {begin, end} = this.props;

Callers

nothing calls this directly

Calls 2

dateStr2ObjFunction · 0.50
obj2DateStrFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…