Skip to content

Instantly share code, notes, and snippets.

View kendrelaxman's full-sized avatar
🥃
Working while travelling

Laxmikant Kendre kendrelaxman

🥃
Working while travelling
  • Capgemini America Inc
  • Chicago, USA
View GitHub Profile
{
"panel": {
"columns": [
{
"rows": [
{
"components": [
{
"type": "Label",
"label": "Label 1",
@kendrelaxman
kendrelaxman / openfin
Last active June 7, 2023 09:15
openfin-wrapper
import { Identity, ChannelClient } from 'openfin';
class OpenFinChannelClient {
private channelClient: ChannelClient;
constructor(providerIdentity: Identity, channelName: string) {
this.channelClient = new ChannelClient(providerIdentity, channelName);
}
public async connect(): Promise<void> {
//To share a React context between multiple npm packages, you can create a new package that exports the context provider and consumer components. Then, you can import and use these components in each of the other packages that need to access the shared context.
//Create a new package called "shared-context" that exports the context and its provider and consumer components.
// shared-context/index.js
import React from 'react';
const SharedContext = React.createContext();
export const SharedProvider = SharedContext.Provider;
// Note: please restart the page if syntax highlighting works bad.
let el = document.querySelector('#header')
let msg: string = 'Hi friend, try edit me!'
el.innerHTML = msg
console.log('it shows results as you type')
class ExampleA{
private records ={