Extract defaultProps from a config file
vincentaudebert opened this issue · comments
Vincent commented
As discussed with @loicteixeira it would be easier and more future proof to extract duplicated defaultProps
to a global config file:
Loic Teixeira commented
FWIW, the reason why we can't just set the props as optional with default in BaseChooser
and mark the props as required in ModelPicker
is because ModelPicker
is used directly (not through BaseChooser
) from DraftJS. Therefore we need to accommodate that some options might not be supplied.