<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/react-for-vue-developers-1-components-props-mental-reset-hvn1ca7um" -->

---
title: React for Vue Developers, 1: Components, Props, Mental Reset
description: A guide aimed at Vue 3 developers transitioning to React 19, explaining foundational concepts through direct comparison. It covers how React components are...
canonical: https://daily.dev/posts/react-for-vue-developers-1-components-props-mental-reset-hvn1ca7um
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: React for Vue Developers, 1: Components, Props, Mental Reset | daily.dev
og:description: A guide aimed at Vue 3 developers transitioning to React 19, explaining foundational concepts through direct comparison. It covers how React components are...
og:url: https://daily.dev/posts/react-for-vue-developers-1-components-props-mental-reset-hvn1ca7um
og:image: https://api.daily.dev/og/posts/hvN1cA7uM.png
og:image:alt: React for Vue Developers, 1: Components, Props, Mental Reset
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# React for Vue Developers, 1: Components, Props, Mental Reset

**[Telerik](https://daily.dev/sources/telerik)** · 11 min read · 7 upvotes · 0 comments

## Summary

A guide aimed at Vue 3 developers transitioning to React 19, explaining foundational concepts through direct comparison. It covers how React components are plain functions rather than framework-managed objects, how JSX replaces Vue's template directives (with && and ternaries standing in for v-if, and .map() replacing v-for), the mandatory key prop, camelCased event handlers like onClick, and props as plain function arguments rather than reactive objects. It also maps Vue's slot system (default, named, and scoped slots) onto React's children prop, named JSX props, and render props. The piece flags common pitfalls like rendering a literal 0 with && and forgetting Fragments for multiple root elements, closing with a preview that Part 2 will cover React's non-reactive props model.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.telerik.com/blogs/react-vue-developers-part-1-components-props-mental-reset>

## Questions this post answers

### Why does React render a literal 0 on the screen when I use array.length && <Component />

React renders 0 as text when the left side of a JavaScript && expression evaluates to the falsy number 0, because unlike false or null, React still renders 0 rather than treating it as nothing. This happens with patterns like items.length && <List />. The fix is to force a boolean, such as items.length > 0 && ..., or use a ternary instead.

_Developers debugging odd JSX rendering quirks often keep reference notes like this handy on daily.dev._

### How do I pass content into a React component the way I use slots in Vue 3

Anything nested inside a React component's tags is automatically passed as a special prop called children, which covers the same use case as Vue's default slot. For multiple named slots, pass JSX as separate named props instead. For Vue's scoped slots, the closest equivalent is the render prop pattern, where a function prop is called with data and returns markup.

_Developers migrating component libraries between frameworks track these mapping patterns on daily.dev._

### Are React props reactive like Vue 3 props

No, React props are not reactive in the deep, automatic sense Vue props are. They are simply the arguments from the most recent render; when a parent re-renders and passes a new value, the child function reruns entirely from top to bottom rather than having specific template parts surgically updated the way Vue's reactivity system does.

_Vue developers switching frameworks compare state and reactivity models like this on daily.dev._

## Similar posts on daily.dev

- [React for Vue Developers, 2: State, Effects, Re-renders](https://daily.dev/posts/react-for-vue-developers-2-state-effects-re-renders-lf4kx00ba) · Telerik · 13 upvotes · 1 comments
- [React for Beginners](https://daily.dev/posts/react-for-beginners-dsvln2lbz) · Kirupa · 7 upvotes · 2 comments
- [React and Vue Are Turning Into the Same Framework](https://daily.dev/posts/react-and-vue-are-turning-into-the-same-framework-gdlameyal) · DEV · 22 upvotes · 2 comments
- [React tutorial: Get started with the React JavaScript library](https://daily.dev/posts/react-tutorial-get-started-with-the-react-javascript-library-elwrrjcen) · InfoWorld · 1 upvotes · 0 comments

---

Tags: [#javascript](https://daily.dev/tags/javascript), [#react](https://daily.dev/tags/react), [#vuejs](https://daily.dev/tags/vuejs), [#jsx](https://daily.dev/tags/jsx)

[View this post on daily.dev](https://daily.dev/posts/react-for-vue-developers-1-components-props-mental-reset-hvn1ca7um)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"React for Vue Developers, 1: Components, Props, Mental Reset","url":"https://daily.dev/posts/react-for-vue-developers-1-components-props-mental-reset-hvn1ca7um","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/react-for-vue-developers-1-components-props-mental-reset-hvn1ca7um"},"datePublished":"2026-09-24T19:33:53.572Z","dateModified":"2026-09-24T19:34:18.708Z","description":"A guide aimed at Vue 3 developers transitioning to React 19, explaining foundational concepts through direct comparison. It covers how React components are...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/b39b6639388ee8833afe316a13152838?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/b39b6639388ee8833afe316a13152838?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Telerik","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Telerik","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/5ee6d4bef8ac4f84886d06f5881963e7","url":"https://daily.dev/sources/telerik"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/react-for-vue-developers-1-components-props-mental-reset-hvn1ca7um","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":7},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"javascript,react,vuejs,jsx","timeRequired":"PT11M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Telerik","item":"https://daily.dev/sources/telerik"},{"@type":"ListItem","position":3,"name":"React for Vue Developers, 1: Components, Props, Mental Reset"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/react-for-vue-developers-1-components-props-mental-reset-hvn1ca7um#faq","mainEntity":[{"@type":"Question","name":"Why does React render a literal 0 on the screen when I use array.length \u0026\u0026 \u003cComponent /\u003e","acceptedAnswer":{"@type":"Answer","text":"React renders 0 as text when the left side of a JavaScript \u0026\u0026 expression evaluates to the falsy number 0, because unlike false or null, React still renders 0 rather than treating it as nothing. This happens with patterns like items.length \u0026\u0026 \u003cList /\u003e. The fix is to force a boolean, such as items.length \u003e 0 \u0026\u0026 ..., or use a ternary instead. Developers debugging odd JSX rendering quirks often keep reference notes like this handy on daily.dev."}},{"@type":"Question","name":"How do I pass content into a React component the way I use slots in Vue 3","acceptedAnswer":{"@type":"Answer","text":"Anything nested inside a React component's tags is automatically passed as a special prop called children, which covers the same use case as Vue's default slot. For multiple named slots, pass JSX as separate named props instead. For Vue's scoped slots, the closest equivalent is the render prop pattern, where a function prop is called with data and returns markup. Developers migrating component libraries between frameworks track these mapping patterns on daily.dev."}},{"@type":"Question","name":"Are React props reactive like Vue 3 props","acceptedAnswer":{"@type":"Answer","text":"No, React props are not reactive in the deep, automatic sense Vue props are. They are simply the arguments from the most recent render; when a parent re-renders and passes a new value, the child function reruns entirely from top to bottom rather than having specific template parts surgically updated the way Vue's reactivity system does. Vue developers switching frameworks compare state and reactivity models like this on daily.dev."}}]}
```

