LearnNewsExamplesServices
Frontmatter
id7108
titledocs: Update "Describing a View" for v10 functional components
stateClosed
labels
enhancement
assigneestobiu
createdAtJul 24, 2025, 5:37 PM
updatedAtOct 23, 2025, 12:58 AM
githubUrlhttps://github.com/neomjs/neo/issues/7108
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJul 28, 2025, 1:02 PM

docs: Update "Describing a View" for v10 functional components

Closed v10.2.0 enhancement
tobiu
tobiu commented on Jul 24, 2025, 5:37 PM

The "Getting Started > Describing a View" guide is a new user's first introduction to building a UI in Neo.mjs. It is critically outdated as it only shows the classic, class-based component model.

This ticket is to update the document to lead with the modern, functional approach introduced in v10.

Tasks

  • Add a new, prominent section at the top titled "The Modern Approach: Functional Components".
  • This new section should feature a code example of a simple view built with defineComponent and createVdom.
  • Reframe the existing content as "The Classic Approach: Class-Based Components".
  • Add a brief explanation of when to choose one approach over the other (e.g., functional for simple views, class-based for extending the component library or complex stateful logic).
tobiu assigned to @tobiu on Jul 24, 2025, 5:37 PM
tobiu added the enhancement label on Jul 24, 2025, 5:37 PM
tobiu referenced in commit 9647052 - "docs: Update "Describing a View" for v10 functional components #7108" on Jul 28, 2025, 1:02 PM
tobiu closed this issue on Jul 28, 2025, 1:02 PM