babel-react-rshow
v1.0.0
Published
react版本的r-show指令
Downloads
4
Readme
如何使用
<div>
<div r-show={true}>🎉🎉r-show</div>
</div>;
效果
React.createElement("div", null, true ? React.createElement("div", null, "🎉🎉r-show") : null);
❗️❗️注意
此处r-show的做法是采用三目表达式处理并不是采用display:none