#Add conditional attribute to video tag

1 messages · Page 1 of 1 (latest)

warm cargo
#

How can I add autoplay to the video tag using a condition?

sudden blade
#

Try:

<video autoplay={condition ? true : null} />

setting the attribute to null should remove it.