简体   繁体   English

如何将 React 应用程序置于维护模式

[英]How to put a React app in maintenance mode

我想知道如何将 React 应用程序置于维护模式。

You can create a component that will have the content to show when the application is in maintenance mode, and use it as the only component to be rendered in case of maintenance else other/normal behavior components.您可以创建一个组件,当应用程序处于维护模式时,该组件将显示内容,并将其用作唯一要在维护时呈现的组件,其他/正常行为组件。 codesandbox-demo 代码和盒子演示

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM