swappea
Is there any examples of making a library with vite that exports a Solid.js Component.
@bigmistqke - do you know how to export my .css files with this package?
I see that it's present in the dist directory, but when I installed my library inot another project, it's not applying styles.
So I did an import
library/dist/index.css
but vite says specifiier not found6 replies
Should I use reconcile everytime I use produce?
const useReducer = (reducer, state) => {
const [store, setStore] = createStore(state);
const dispatch = (action) => {
state = reducer(state, action);
setStore(reconcile(state));
}
return [store, dispatch];
};
I am using this reducer functionality as I have lot's of actions to deal with
5 replies