Preact hook that import current config to the component.
Should always be at the top of the component!
import { useConfig } from '@nosto/preact'export default () => { const { serpPath } = useConfig() return <div> Default search page path {serpPath} </div>} Copy
import { useConfig } from '@nosto/preact'export default () => { const { serpPath } = useConfig() return <div> Default search page path {serpPath} </div>}
Preact hook that import current config to the component.
Should always be at the top of the component!