Issue
Is there a way to use svelte store with react.js. I really like it's simplicity and how it's replace switch
case
. Here's an example code from svelte doc.
import { writable } from 'svelte/store';
function createCount() {
const { subscribe, set, update } = writable(0);
return {
subscribe,
increment: () => {},
decrement: () => {},
reset: () => {}
};
}
export const count = createCount();
Solution
please disregard and see the other answer that should have been accepted
Answered By - Daniel
Answer Checked By - - David Marino (ReactFix Volunteer)