Small component surface
Your React component only needs to render the iframe, size it, and optionally manage event handlers.

React game widget
React teams do not need to build a game from scratch to add a playable widget. Render a GamesIKnow iframe inside a React component, pass the frame URL, and listen for postMessage events when the parent app needs game state.
Iframe component
React message listener
Responsive wrapper
Signed completion support
Short answer
In React, create a small iframe component for /embed/{gameSlug}/frame/, pass tenantId as a URL parameter, and attach a message listener for GamesIKnow events.
The demo shows the iframe and the parent-page events your React app can subscribe to.
React developers adding a game embed
An iframe keeps the game runtime separate from your app while still allowing event-based integration.
Your React component only needs to render the iframe, size it, and optionally manage event handlers.
The game does not increase your React application bundle with board logic, assets, or real-time code.
The parent app can react to events without coupling directly to game internals.
Setup flow
Wrap the iframe in a component, memoize the frame URL if needed, and clean up message listeners on unmount.
Step 1
Render an iframe with width 100%, a stable height, allow="fullscreen", and the GamesIKnow frame URL.
Step 2
Build the src with your tenantId and optional campaignId so your dashboard data stays organized.
Step 3
Attach window.addEventListener("message", handler) and filter messages where data.source is gamesiknow.
Step 4
If the React app unlocks rewards, call your backend and verify signed results before granting anything.
Implementation
Keep the iframe component boring. Most bugs come from unstable sizing, duplicate listeners, or trusting browser messages too much.
Do not remount the iframe on every parent render. Keep src stable unless the game or tenant settings change.
Return a cleanup function from useEffect so React development mode does not leave duplicate event handlers.
React can show the result quickly, but prize or credit decisions should happen on your server.
Available games
Tic Tac Toe
Embed for same-screen play on your site, or send players to GamesIKnow to challenge a friend remotely with a room link.
Embed setup
Four in a Row
Embed for local two-player drops on one screen, or link friends to play Four in a Row online from anywhere.
Embed setup
Bingo
Same-screen Bingo in your embed, or host a remote room so players can join from their own devices.
Embed setup
I Know
Quick trivia in your embed on one screen, or run a live room so friends can answer from anywhere.
Embed setup
FAQ
Use /embed/{gameSlug}/frame/ as the iframe src. That route is the lightweight game frame built for website embeds and postMessage events. The /embed/{gameSlug}/ route is the public preview and SEO page for people, not the route to place inside an iframe.
No. Visitors can play inside the browser iframe on phone, tablet, laptop, or desktop. A partner account is only needed by the website owner who installs the embed.
Yes. GamesIKnow embeds are designed around registered websites and domain-restricted tenant settings, so copied iframe code cannot be freely reused on unauthorized sites.
Tic Tac Toe, Four in a Row, Bingo, and I Know are available as embeddable browser games. The embed documentation uses the same event model across supported games.
No. GamesIKnow embeds are iframe-based. That keeps setup framework-agnostic while still working cleanly inside React components.
Create a partner account, register your domain, and generate a domain-restricted iframe for your website.