docs(solid): Added instructions with the use directive for solid. #292
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.
There was a weird "gotcha" that took me actually a few frustrating hours to figure out because it wasn't reflected in the docs or anything.
I'm not sure if
use:form
is actually possible because after some experimenting + reading up on how this works: https://docs.solidjs.com/reference/jsx-attributes/use#use.I still couldn't get it. So I honestly don't know if it's a skill issue or just the docs.
This was the issue I posted yesterday: #291. I think adding this to the readme would save a ton of time.
I found two ways actually:
Fix 1: Defining in a global dts
Fix 2: Defining in local file where its used.
🙁 Didn't work
I assumed just using
use:form
would work, but it didn't lol.🙁 Another attempt that didn't work.
This was what the docs showed, and it didn't work. (it's because of the
global
value)