Problem with sprintf in React component
See original GitHub issueDescription
I encountered a problem with sprintf
when I tried to use it with a React component (InputNumber of Ant Design)
When I use regular string concatenation everything works as expected.
Repro code
Expected and actual results
Expected
No exception 😃
Actual
Related information
dotnet fable --version
= 1.3.15dotnet --version
= 2.1.105- Windows 10 Education Version 10.0.17134 Build 17134
- Chrome Version 67.0.3396.87 (Official Build) (64-bit)
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
React component inside interpolated React Component
I have a simple <Trans/> React Component which allows to translate a key with some properties (I use sprintf). For example:
Read more >Developers - Problem with sprintf in React component -
Description. I encountered a problem with sprintf when I tried to use it with a React component (InputNumber of Ant Design)
Read more >Top 5 sprintf-js Code Examples
To help you get started, we've selected a few sprintf-js examples, based on popular ways it is used in public projects. Secure your...
Read more >sprintf-js
Start using sprintf-js in your project by running `npm i sprintf-js`. There are 2435 other projects in the npm registry using sprintf-js.
Read more >PHP sprintf() Function
The sprintf() function writes a formatted string to a variable. The arg1, arg2, ++ parameters will be inserted at percent (%) signs in...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @alfonsogarciacaro
sorry for the late reply. I’d like to use this as an opportunity to contribute to Fable. I just need to onboard compiler development, then I hopefully manage to send a PR with a fix 😄.
Closing for now, please reopen if this is still an issue with Fable 3.