Loading video player...
💻 Front-End Development for Your Monad dApp | React + TypeScript + Wagmi + Reown AppKit Tutorial In this episode, Knox from Pro Staking walks through the complete front-end build for the Light Switch dApp — connecting your deployed Monad smart contract to an interactive Next.js + TypeScript UI using Reown AppKit. We’ll review the entire project structure, replace default Ethereum scaffolding with Monad Testnet, connect hooks, context, config, and components, and wire up the on-chain toggle logic so users can flip the Light Switch by paying 0.5 MON directly through the UI. 🧠 What You’ll Learn How to structure a Next.js Web3 front-end (hooks, context, config, components, app) How to update network configuration from Ethereum → Monad Testnet How to implement Connect Wallet and network-switching using Reown AppKit How to bind contract functions (getState, toggle) to UI elements How to manage transaction state, pending → confirmed flow, and emitted events How to style the Light Switch with responsive CSS + theme customization How to reference your deployed contract address from .env.local 🧩 Key Files and Folders /hooks → event logic (unchanged) /context → metadata and provider updates /config → switched to Monad Testnet network /components → includes ConnectButton.tsx, ActionButton.tsx, LightSwitch.tsx /app → main layout, CSS theme, and page.tsx containing on-chain logic 🪙 Pro Tips Always replace the placeholder contract address with your deployed Monad contract. Keep the ABI and contract functions (isOn, toggle, getState) in sync with your Solidity source. Reown AppKit automatically manages wallet connections + chain switching — no manual RPC juggling needed. 🔗 Connect with Knox Follow on X/Twitter → @Knox Validator Infrastructure → Pro Staking ⏱️ Timestamps 0:00 Intro – Reviewing the front-end structure 0:45 Hooks & Context updates 1:30 Updating config for Monad Testnet 2:30 Editing components and adding LightSwitch.tsx 3:30 Modifying layout and CSS for UI theme 4:30 Updating page.tsx with contract address + ABI functions 5:30 Explaining state management and toggle logic 6:30 Testing the wallet connect and toggle actions #Monad #ReownAppKit #NextJS #React #TypeScript #Wagmi #Web3 #SmartContracts #DApp #ProStaking #Knox #MonadTestnet #BlockchainDevelopment #CryptoDevelopment