docs
/
Explore live demo
Sign up
  1. Introduction
  2. Home
  3. Overview
  4. Getting started
  5. Explanation
  6. Component
  7. Slot
  8. Immersion
  9. Reference
      1. Integration
      2. Manual installation
      3. Content rendering
      4. Query evaluation
      5. Data collection
      6. Event tracking
        1. Debugging
          1. Missing provider
          2. Client logic in SSR
          3. Missing slot content
          4. Missing evaluation result
    1. Reference
    2. SDKs
  1. React
  2. Troubleshooting
  3. Common problems

Missing provider

Learn how to configure the Croct provider.

If you try to use the useCroct hook outside the context of a <CroctProvider> component, you will see the error below:

Error

useCroct() can only be used in the context of a <CroctProvider> component.

This indicates that the SDK is not properly initialized. To resolve this issue, follow the steps for initializing the SDK.

Previous
Common problems
Next
Client logic in SSR
  • Product
  • Segmentation
  • Personalization
  • AB testing
  • Component CMS
  • All features
  • Solutions
  • Customer acquisition
  • Lead generation
  • Geo-targeting
  • Revenue growth
  • Paid search traffic
  • Social ads traffic
  • Resources
  • Templates
  • Documentation
  • Changelog
  • Playbooks
  • Blog
  • Partners
  • Company
  • Service status
  • Contact support
  • Contact sales
  • Compare vendors
  • Privacy policy
  • Terms of service
  • Language
© Croct 2026