Live Demo: https://quirky-mirzakhani-12bdf3.netlify.app/
LiveCodeLab is a lightweight in-browser code playground inspired by CodePen. It allows users to write and preview HTML, CSS, and JavaScript code in real time using React and modern web technologies.
- 🧠 Live Preview: Instant rendering of HTML, CSS, and JavaScript code.
- 🎨 Syntax Highlighting: Monaco Editor integration for a smooth editing experience.
- 🔳 Resizable Panels: Three separate panels for HTML, CSS, and JS with a live output pane.
- 🌐 Responsive Design: Works seamlessly across devices and screen sizes.
- ⚛️ Built with React: Uses functional components and hooks.
- React
- Monaco Editor (via
@monaco-editor/react) - Tailwind CSS for styling
- Netlify for deployment
-
Clone the repo:
git clone https://github.com/harivilasp/Codepen-React.git cd Codepen-React -
Install dependencies:
npm install
-
Start the development server:
npm start
/src
/components
Editor.js # Individual code editor for HTML/CSS/JS
Preview.js # Live output rendering
App.js # Main layout combining editors and preview
index.js # App entry point
styles.css # Tailwind and global styles
- 📝 Add local storage or cloud sync for saving code
- 📁 Support for file-based project structure
- 🔍 Error highlighting or console logging
- 🧪 Unit tests for editor components
MIT License
Created with ❤️ by @harivilasp
