React PKL Documentation
Welcome to the React PKL v0.2.0 documentation! This guide will help you navigate all available documentation.
🚀 Quick Start: Jump to Getting Started Guide to build your first plugin system.
🆕 v0.2.0 Highlights: Context-driven architecture, theme system with layout overrides, style context, and static plugin support!
📚 Documentation Overview
For Getting Started
- Getting Started Guide - Step-by-step tutorial for creating your first plugin system
- Examples Guide - Detailed walkthrough of example applications and plugins
For Development
- API Reference - Complete API documentation for all classes, methods, and types (v0.2.0 updated)
- Quick Reference - Fast lookup for common tasks and code snippets
- Advanced Usage - Advanced patterns, techniques, and best practices
- Theme System - Comprehensive guide to the v0.2.0 theme system ⭐ NEW
For Understanding
- Architecture Overview - System design, data flow, and architectural decisions (v0.2.0 updated)
- Contributing Guide - How to contribute to the project
📖 Reading Path by Role
I'm building a plugin system
- Read Getting Started Guide to create your SDK
- Review Theme System to understand theming capabilities (v0.2.0)
- Check Examples Guide to see how it works in practice
- Refer to API Reference as you build
- Use Advanced Usage for sophisticated features
I'm developing plugins
- Your SDK should provide its own documentation
- Use Quick Reference for common patterns
- Check Theme System if building a theme plugin
- Check Examples Guide for plugin examples
- Refer to your SDK's documentation for context-specific APIs
I'm contributing to React PKL
- Study Architecture Overview to understand the v0.2.0 system
- Follow Contributing Guide for development workflow
- Use API Reference to understand the codebase
I'm evaluating React PKL
- Browse Examples Guide to see it in action
- Check Architecture Overview for design decisions (v0.2.0 updated)
- Review API Reference to assess API quality
- Explore Theme System to understand theming capabilities
🆕 What's New in v0.2.0
Context-Driven Architecture
Components use hooks instead of props, eliminating prop drilling:
// Old
<AppHeader toolbar={items} user={user} />
// New
function AppHeader() {
const { toolbar } = useAppLayout();
const { user } = useAppContext();
}
Theme System
Plugins can override entire layout components:
onThemeEnable(slots) {
slots.set(AppHeader, DarkHeader);
slots.set(AppSidebar, DarkSidebar);
}
Style Context
Type-safe theme variables:
const styles = useStyles();
<div style={{ background: styles.bgPrimary }}>...</div>
Static Plugins
Plugins without lifecycle methods for simple extensions:
export default {
meta: { id: 'toolbar', name: 'Toolbar', version: '1.0.0' },
entrypoint: () => <Button />
};
See Architecture and Theme System for full details.
🔍 Finding Information
I want to...
...create my first plugin system → Getting Started Guide
...look up a specific API → API Reference
...find a code snippet quickly → Quick Reference
...implement an advanced feature → Advanced Usage
...see working examples → Examples Guide
...understand the theme system → Theme System Guide
...understand the architecture → Architecture Overview
...contribute to the project → Contributing Guide
💡 Tips for Using Documentation
For Learning
- Follow Getting Started Guide step-by-step
- Study Examples Guide to see real code
- Keep Quick Reference handy while coding
- Dive into Advanced Usage when needed
For Reference
- Use Quick Reference for fast lookups
- Consult API Reference for detailed specs
- Check Examples Guide for patterns
- Review Advanced Usage for complex scenarios
🎯 Next Steps
Choose your path:
- 🚀 Get Started - Build your first plugin system
- 📖 Read Examples - Learn from working code
- 🔧 API Reference - Look up specific APIs
- 🎨 Theme System - Master theming
- 🎓 Advanced Usage - Master advanced techniques
- 🤝 Contribute - Help improve React PKL
Happy coding with React PKL! 🎉
For questions, issues, or contributions, visit the GitHub Repository.