slate/common/state.js
2020-11-21 23:33:22 -08:00

8 lines
108 B
JavaScript

export const getInitialState = (props) => {
if (!props) {
return null;
}
return { ...props };
};