Here are the essential learning resources, organized by priority and learning style:
Core Foundation (Start Here)
Official Documentation (Your Primary References):
- Vite Guide - Focus on the "Getting Started" and "Building for Production" sections. You'll specifically need the "Library Mode" section later.
- React Documentation - The new React docs are excellent. Focus on "Describing the UI", "Adding Interactivity", and "Managing State".
- shiny.react Documentation - This is your bridge. The "Getting Started" tutorial is essential.
Hands-On Learning (Learn by Building)
Start with the Official Tutorial:
- shiny.react Getting Started - This walks you through building a simple counter widget. It's the perfect "Hello World" for your exact use case.
Then Build These Progressively:
- A Rating Widget (5 stars, click to rate)
- A Color Picker (sends hex color back to Shiny)
- A File Uploader with Preview (drag & drop, shows thumbnails)
Each project teaches you a new React concept while staying focused on the Shiny integration.
Video Learning (If You Prefer Visual)
React Fundamentals:
Vite Specific:
Reference Materials (Keep These Handy)
Quick References:
Community & Problem Solving
When You Get Stuck:
Learning Strategy
Week 1: Read the React docs "Describing the UI" section, then immediately build the shiny.react counter tutorial.
Week 2: Build your rating widget. You'll learn useState and event handling.
Week 3: Build the color picker. You'll learn useEffect and how to respond to prop changes from Shiny.
The Key: Don't try to learn everything about React or Vite upfront. Learn just enough to build your first widget, then expand your knowledge as you build more complex ones.
Your goal is to get your first widget working in Shiny as quickly as possible, then iterate and improve from there.