I am doing the following (both of the exported are objects):
SlateInfo.js
export default {SlateRules, SlateSchema};
and then in another file
import {SlateRules, SlateSchema} from 'SlateInfo';
But what I get is that SlateRules
is defined as an object containing SlateRules
and SlateSchema
SlateSchema
is left undefined.
Where am I going wrong/what am I misunderstanding?