3 ms·
I thought I hated React until I saw the samples on this page...
by eknkc 7mo ago
I thought I hated React until I saw the samples on this page...
- jfengel 7mo agoAny time I see code in quotes I get the heebie jeebies. Code in quotes can't even be syntax checked until run time.
- usrbinenv 7mo agoWhat you probably saw isn't code in quotes, but simply matchers like `price: "isPresent()"`. The () is there to signal it's a matcher, not a value. If this matcher doesn't exist, you'll get an error. The reason I chose () to signal it's a matcher is to distinguish it from values. Maybe there's a better way to do it.