Closed nickshevr closed 6 years ago
For components which declared like:
const Component = (props) => { const {flag} = props; return flag ? <div>smth</div> : <a>smth</a> }
It doesn't set data attribute.
Also components which declared like:
const Component = (props) => { const {flag} = props; return flag && <div>smth</div> }
Doesn't work as well.
For components which declared like:
It doesn't set data attribute.