3 ms·
There's a babel plugin for adding an Angular-style "display-if" to JSX - https://www.npmjs.com/package/babel-plugin-jsx-display-if https://www.npmjs.com/packag
by maxwellg 5y ago
There's a babel plugin for adding an Angular-style "display-if" to JSX -
https://www.npmjs.com/package/babel-plugin-jsx-display-if https://www.npmjs.com/package/babel-plugin-jsx-display-if
I've only seen it used in projects once or twice but it really does wonders for readability once the team becomes OK with the new-ish syntax