I am applying inline style to a div in React
If I do
<div style={{ backgroundImage: `url(${process.env.IMAGES}/${ID}.png)` }}>{children}</div>
it works fine, but on changing to
<div style={{ maskImage: `url(${process.env.IMAGES}/${ID}.png)` }}>{children}</div>
the style doesn't even show in the code inspector.
What could be wrong? Thank you