Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot use functions that return strings inside style property #621

Closed
Oudwins opened this issue Mar 15, 2024 · 1 comment
Closed

cannot use functions that return strings inside style property #621

Oudwins opened this issue Mar 15, 2024 · 1 comment

Comments

@Oudwins
Copy link
Contributor

Oudwins commented Mar 15, 2024

Example of invalid code (throws a compile error)

<section
style={fmt.Sprintf("background: %s", "red")}
>
Project Page
</section>

Expected behavior
It should compile and work like every other property. I am so confused. Is there a reason why it doesn't?

@Oudwins Oudwins closed this as completed Mar 15, 2024
@Oudwins
Copy link
Contributor Author

Oudwins commented Mar 15, 2024

I found the security page...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant