Closed tavurth closed 3 years ago
Adds and injectable SDK context to the extension tree.
Use looks like:
import { useContext } from 'react' import { SDKContext } from '../../context' function MyComponent() { const sdk = useContext(SDKContext); ... }
Or alternately:
import { useSDK } from '../../context' function MyComponent() { const sdk = useSDK(); ... }
Kudos, SonarCloud Quality Gate passed!
0 Bugs 0 Vulnerabilities 0 Security Hotspots 0 Code Smells
No Coverage information 0.0% Duplication
Adds and injectable SDK context to the extension tree.
Use looks like:
Or alternately: