KonstantinSimeonov / tsx-control-statements

Control flow JSX/TSX elements that get compiled to plain old javascript.
Do What The F*ck You Want To Public License
92 stars 9 forks source link

WARN issued when using the type-safe syntax in <For> #247

Closed nippur72 closed 8 months ago

nippur72 commented 10 months ago

when using the suggested type-safe version of <For>

  <For of={list} body={el=><div></div>}/>

I get:

WARN(tsx-control-statements): "each" property of For is missing

Looking at the source code, it seems that each is mandatory.

KonstantinSimeonov commented 9 months ago

It's not, but that's my buggy code for you :v: Gonna have some free time the next couple of days, will publish a fix and post here

KonstantinSimeonov commented 8 months ago

publish 5.1.1 which should get rid of the warning :headstone: