@nosto/nosto-react
    Preparing search index...

    Function useNostoHome

    • You can personalise your home page by using the useNostoHome hook.

      Parameters

      Returns void

      import { useNostoHome } from '@nosto/nosto-react'

      function HomePage() {
      useNostoHome({
      placements: ['frontpage-nosto-1', 'frontpage-nosto-2', 'frontpage-hero']
      })

      return (
      <div>
      <div id="frontpage-hero" />
      <h1>Welcome to our store</h1>
      <div id="frontpage-nosto-1" />
      <div id="frontpage-nosto-2" />
      </div>
      )
      }
      import { useNostoHome } from '@nosto/nosto-react'

      function SimpleHomePage() {
      // Uses all available placements configured in Nosto admin
      useNostoHome()

      return (
      <div>
      <h1>Home Page</h1>
      {/\* Nosto will inject content into configured placements */}
      </div>
      )
      }