Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 2592

Idea I am using to avoid using React.string

$
0
0

I ended up using a custom React extension where string is simply replaced by __ to reduce the visual noise :man_shrugging:

// MyReact.res
include React
let __ = React.string
// Hello.res
open MyReact
// ...
<div> {__("hello")} </div>

Viewing all articles
Browse latest Browse all 2592

Trending Articles