useConfig

Hook for getting Config from nearest ArkProvider.

Import

import { useConfig } from '@ark-project/react'

Usage

import React from 'react'
import { useConfig } from '@ark-project/react'

function App = () => {
  const config = useConfig()
}

Return Type

Config | undefined

Config to use instead of retrieving from the nearest ArkProvider.