# ncore-context State Management Library for NCore ## Installation ```sh yarn add ncore-context ``` ## Usage ```js const ExampleTheme = new NCoreContext({ spaces: { container: 20, content: 10 }, colors: { primary: "#00c2a9", success: "green", accent: "red" } }, { isSaveState: true, key: "key1" }); const ContextAPI = () => { useEffect(() => { theme.addEventListener("a", themeChanged); theme.addEventListener("b", themeChanged2); }, []); const themeChanged = (newState: any) => { console.error("STATE CHANGED. NEW STATE:", newState); }; const themeChanged2 = (newState: any) => { console.error("STATE CHANGED 2. NEW STATE 2:", newState); }; const { colors } = theme.useContext(); return Test Text