Open psygo opened 1 year ago
This would be great :open_mouth: . I'm a bit low on time right now, but in a few weeks I think I can try to help.
(Btw, maybe you should mark this as a draft PR?)
(Btw, maybe you should mark this as a draft PR?)
True that. I forgot about that feature.
I have a personal project in which I would like to use MUI's
Autocomplete
component. So I decided to try to make a contribution to this project. However, this specific component seems very challenging.This is not working at this point, and I left it this way so hopefully someone sheds some light on the following questions.
I'm trying to use something like
pnpm codemod mui2suid --package-name material --name Autocomplete
in order to generate the code for theAutocomplete
component, but the files are not generated, despite my logs saying they were:I think I have a beginner-to-intermediate knowledge of SolidJS and I'm starting to think it's not gonna be enough for this specific component. More specifically due to
useAutocomplete
's dependence on things likeuseEventCallback
,useControlled
,useEnhancedEffect
, etc. Is there a way for me to convert those viacodemod mui2suid
?I've tried using
pnpm codemod mui2suid --package-name utils --name useEventCallback
for example, but got this:Due to my limited expertise, could someone help me on how to transpile from React to Solid the following examples? I think they might help other future contributors as well.
codemod mui2suid
function foruseEnhancedEffect
/useLayoutEffect
based on this Ryan Carniato's comment?useEventCallback
transpiles to... totally unnecessary?useControlled
, is it basically simply eliminatinguseCallback
; transforminguseRef
s tolet
; anduseState
to acreateSignal
?