time it is called on jsx?
Example:
<h1>{counter}<h1> —> This would end up being <h1>0<h1>
<h1>{counter}<h1> —> This would end up being <h1>1<h1>
you need something to update the counter. Button click, set interval, etc
Yeah, but in this case there isn't. I'm basically trying to find a way to have a list of something 1. Foo 2. Bar 3. Baz Based on something external, 1. Foo might not be rendered, then the list would be rendered as 2. Bar 3. Baz I could check the "something" on each part, but I feel like there's a smarter way of doing this
Обсуждают сегодня