Function useConfig

  • Preact hook that import current config to the component.

    Should always be at the top of the component!

    Returns FullConfig

    import { useConfig } from '@nosto/preact'

    export default () => {
    const { serpPath } = useConfig()

    return <div>
    Default search page path {serpPath}
    </div>
    }