Skip to content

Instantly share code, notes, and snippets.

View lutfi-haslab's full-sized avatar
🎯
Focusing

lutfi-haslab

🎯
Focusing
View GitHub Profile
@lutfi-haslab
lutfi-haslab / PageEditor.tsx
Created May 14, 2025 05:11
babel react compiler to html
import { useEffect, useRef, useState } from "react";
import { compileTypescript } from "~/utils/compiler";
interface MyProps extends React.HTMLAttributes<HTMLDivElement> {
code: string;
}
export const PageEditor = ({ code }: MyProps) => {
const iframeRef = useRef<HTMLIFrameElement>(null);
const [dom, setDom] = useState<string | undefined>(undefined);

Workshop Blockchain

Requirements

  • NodeJS LTS
  • Ganache
  • Truffle SDK

|- api // folder express server |- prisma //folder prisma model schema |- src // folder vite react project

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "../../utils/Context.sol";
/**
* @dev Implementation of the {IERC20} interface.
*