Mini App Development Kit
The InterLink MDK (Mini-App Development Kit) is a comprehensive SDK suite that enables developers to rapidly build, deploy, and scale decentralized mini-applications on the InterLink Network.
Last updated
The InterLink MDK (Mini-App Development Kit) is a comprehensive SDK suite that enables developers to rapidly build, deploy, and scale decentralized mini-applications on the InterLink Network.
Last updated
import React from "react";
import Mdk from "@interlinklabs/mdk";
const App = () => {
const handleSuccess = () => {
console.log("Login successful!");
};
const handleFailure = () => {
console.log("Login failed.");
};
return (
<Mdk
appid="your-app-id"
onSuccess={handleSuccess}
onFailure={handleFailure}
>
{({ open }) => <button onClick={open}>Login with the app</button>}
</Mdk>
);
};
export default App;