You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

babel-react-rshow

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-react-rshow

react版本的r-show指令

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

如何使用

<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

Keywords

babel-react-rshow

FAQs

Package last updated on 09 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts