Skip to content

Commit

Permalink
Add io to window obj in react-client
Browse files Browse the repository at this point in the history
Signed-off-by: Kalina Georgieva <kalina.georgieva@interop.io>
  • Loading branch information
Kalina Georgieva committed Jan 26, 2024
1 parent 1f0e783 commit cfd83b3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion browser-client-react/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import React from 'react';
import React, { useContext } from 'react';
import logo from './connect-browser.svg';
import './App.css';
import { IOConnectContext } from '@interopio/react-hooks';

function App() {

const io = useContext(IOConnectContext);

(window as any).io = io;

return (
<div className="App">
<header className="App-header">
Expand Down

0 comments on commit cfd83b3

Please sign in to comment.