import React, { useState, useEffect } from "react"; // Learning Portal for kids (single-file React app) // - Stores lessons in localStorage so it works offline in the browser // - Simple admin mode protected by a PIN (stored in localStorage) // - Lessons support title, ageGroup, summary, content (HTML/markdown-lite), and optional base64 attachments // - Import / Export JSON for transferring/updating content on other devices // - Designed to be drop-in for services like Replit, StackBlitz, Netlify or GitHub Pages // USAGE: // 1) Create a new React app (Vite or Create React App) or open in Replit/StackBlitz // 2) Paste this file as `App.jsx` and ensure it's imported from index.js // 3) (Optional) Add Tailwind in your project for the intended styling, or rely on the simple class names // Small utility: sanitize minimal HTML (very small) to allow , ,
,

,