Replies: 1 comment 1 reply
-
| 
         Actually, you could also use {open() ? Open : "Closed"} instead of a fragment to make the statement reactive. However, using is obviously the more idiomatic solution.  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using version 1.6.9.
The documentation here says:
I tried this simple example but it doesn't work (clicking on "CLOSED" doesn't change it to "OPEN"):
The equivalent code using
Showdoes work, however. But the documentation makes it sound like the ternary version should work too.After playing around with it I realized it has to be like this to work:
In retrospect this makes sense but (coming from React) wasn't clear at first. Is this something useful to add to the documentation, or is it better just to always use
Show?Beta Was this translation helpful? Give feedback.
All reactions