New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

react-loading-directly

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-loading-directly

React Loading Directly

latest
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

全局调用的静态方法显示隐藏遮罩

API

showLoading

(content: ReactNode, container: HTMLElement): void

paramTypeDescriptionDefault
contentReactNode渲染到容器的内容-
containerHTMLElement容器的节点-
import {showLoading} from "react-loading-directly";
showLoading(<Spin/>, document.getElementById("rc-route-content"))

hideLoading

import {hideLoading} from "react-loading-directly";
hideLoading()

Keywords

Loading

FAQs

Package last updated on 28 Feb 2022

Related posts