Autocomplete First Attempt (Not Working Yet)
#235
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have a personal project in which I would like to use MUI's
Autocompletecomponent. 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.
pnpm codemod mui2suid --package-name material --name Autocompletein order to generate the code for theAutocompletecomponent, but the files are not generated, despite my logs saying they were:useAutocomplete's dependence on things likeuseEventCallback,useControlled,useEnhancedEffect, etc. Is there a way for me to convert those viacodemod mui2suid?pnpm codemod mui2suid --package-name utils --name useEventCallbackfor 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 mui2suidfunction foruseEnhancedEffect/useLayoutEffectbased on this Ryan Carniato's comment?useEventCallbacktranspiles to... totally unnecessary?useControlled, is it basically simply eliminatinguseCallback; transforminguseRefs tolet; anduseStateto acreateSignal?