You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i saw this post and was able to have it working, i think is a cool feat especially for js devs, not familiare with typed HTML, i think is quite nice to add!
very cool, and the new template is amazing :)
i had to add just this 2 in the template , maybe Fable.Core is not required as it's already upgraded?
[<AutoOpen>]moduleJsxHelpers =let inlinetoJsx(el:ReactElement):JSX.Element = unbox el
let inlinetoReact(el:JSX.Element):ReactElement = unbox el
typeComponents=[<ReactComponent>]static memberHelloWorld()=
JSX.jsx $""" <> <h1>HELLO WORLD!</h1> <div>this is a div from JSX</div> </>"""|> toReact
The text was updated successfully, but these errors were encountered:
Add jsx string template support to default template and to docs?
Could add it to the docs but not sure if I should it yet to the template itself because I feel like it is still experimental. Also the fact that you need toJsx and toReact is a bit hacky. There is the choice between [<ReactComponent>] and [<JSX.Component>] but could introduce some confusion for beginners
https://fable.io/blog/2022/2022-10-12-react-jsx.html
i saw this post and was able to have it working, i think is a cool feat especially for js devs, not familiare with typed HTML, i think is quite nice to add!
very cool, and the new template is amazing :)
i had to add just this 2 in the template , maybe Fable.Core is not required as it's already upgraded?
then i was able to do for example
The text was updated successfully, but these errors were encountered: