All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.olvind.mui.muiMaterial.mod.NoSsr.scala Maven / Gradle / Ivy

The newest version!
package com.olvind.mui.muiMaterial.mod

import com.olvind.mui.muiBase.noSsrNoSsrDottypesMod.NoSsrProps
import com.olvind.mui.react.mod.global.JSX.Element
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}

object NoSsr {
  
  /**
    * NoSsr purposely removes components from the subject of Server Side Rendering (SSR).
    *
    * This component can be useful in a variety of situations:
    *
    * *   Escape hatch for broken dependencies not supporting SSR.
    * *   Improve the time-to-first paint on the client by only rendering above the fold.
    * *   Reduce the rendering time on the server.
    * *   Under too heavy server load, you can turn on service degradation.
    *
    * Demos:
    *
    * - [No SSR](https://mui.com/base/react-no-ssr/)
    *
    * API:
    *
    * - [NoSsr API](https://mui.com/base/react-no-ssr/components-api/#no-ssr)
    */
  inline def apply(props: NoSsrProps): Element = ^.asInstanceOf[js.Dynamic].apply(props.asInstanceOf[js.Any]).asInstanceOf[Element]
  
  @JSImport("@mui/material", "NoSsr")
  @js.native
  val ^ : js.Any = js.native
  
  @JSImport("@mui/material", "NoSsr.propTypes")
  @js.native
  def propTypes: Any = js.native
  inline def propTypes_=(x: Any): Unit = ^.asInstanceOf[js.Dynamic].updateDynamic("propTypes")(x.asInstanceOf[js.Any])
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy