@trashpanda001/helpers
    Preparing search index...

    Function useBodyClass

    • Add the given classes to the body and/or html element.

      Restores the original classes at cleanp.

      Parameters

      • bodyClasses: string

        classes to assign to the body element

      • htmlClasses: string = ""

        classes to assign to the html element

      Returns void

      import { useBodyClass } from "@trashpanda001/helpers/react"

      function Component() {
      useBodyClass("bg-gray-800, "bg-gray-900")
      return <div>...</div>
      }