Closed danielo515 closed 1 year ago
Hey @danielo515, thanks for this report! Open to a PR?
Hey @danielo515, thanks for this report! Open to a PR?
If it is within my ability, then sure. But I don't know where to start. Mind giving me a little guidance?
Hey @danielo515 I could not reproduce the error you reported... Can you provide a small and complete example? Also, your component is typed wrong, it should be:
const Chat = ({ chat }: { chat: SelectChat }) => (
The JSX syntax provides all properties through a single object parameter...
I fixed some type cases with JSX.Element
and Html.Children
. Your problem may have been fixed. Feel free to reopen this issue :)
Also, your component is typed wrong, it should be:
Yep, I also noticed that some time after opening this issue. Gonna update the pgin and see if this problem is fixed. Thanks
Hello, thank you for this nice server-side jsx alternative and plugin for safer operation.
I'm getting what I think it is a false positive in one quite common JSX usage, mapping over a list of elements. I'm just iterating a list and using a component, which has the required safe attributes, but the compiler is complaining at the mapping site. Here are the component and the part where it errors:
As you can see, the component is already taking care of escaping any potential issue, so, how can I workaround this?