Tag

JSX

0 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Apr 29, 2025 · Frontend Development

Implementing Vue‑Style Directives in React with a Babel Plugin

This article explores three approaches to bring Vue‑like directives such as r‑if and r‑for into React, compares their pros and cons, and provides a complete Babel plugin implementation that transforms custom JSX attributes into standard React conditional and list rendering syntax.

BabelDirectivesJSX
0 likes · 9 min read
Implementing Vue‑Style Directives in React with a Babel Plugin
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jan 5, 2025 · Frontend Development

Using JSX/TSX in Vue 3: Component Definition, Syntax, Props, Scoped CSS, and Slots

This article provides a comprehensive guide to using JSX/TSX in Vue 3, covering project setup, the defineComponent API, option and function syntax, data binding, event handling, slots, scoped CSS, and various approaches to defining and simplifying props with TypeScript.

ComponentJSXScoped CSS
0 likes · 22 min read
Using JSX/TSX in Vue 3: Component Definition, Syntax, Props, Scoped CSS, and Slots
Code Mala Tang
Code Mala Tang
Dec 2, 2024 · Frontend Development

How to Replace Complex JSX Ternary Logic with a Simple Show Component in React

This article explains how to improve React conditional rendering readability by adopting Solid.js's Show component pattern, implementing a reusable Show component in React, and extending it to support asynchronous data loading, ultimately making JSX templates clearer and more maintainable.

Conditional RenderingJSXReact
0 likes · 7 min read
How to Replace Complex JSX Ternary Logic with a Simple Show Component in React
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 18, 2024 · Frontend Development

Comprehensive Guide to Vue Component Writing Styles: Options API, Composition API, Setup Syntax Sugar, Render Functions, and JSX

This article systematically introduces the many ways to write Vue components—including the classic Options API, the modern Composition API with setup syntax sugar, hand‑written render functions using h or createVNode, and various JSX techniques—explaining their principles, code examples, and when to choose each approach.

ComponentJSXJavaScript
0 likes · 19 min read
Comprehensive Guide to Vue Component Writing Styles: Options API, Composition API, Setup Syntax Sugar, Render Functions, and JSX
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 18, 2023 · Frontend Development

21 Best Practices for a Clean React Project

This article presents 21 practical best‑practice guidelines for writing clean, maintainable React code, covering JSX shortcuts, ternary operators, object literals, fragments, avoiding functions in render, memoization, styling, imports, naming conventions, and other tips, each illustrated with bad and good code examples.

JSXReactcode style
0 likes · 11 min read
21 Best Practices for a Clean React Project
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 11, 2023 · Frontend Development

Using JSX in Vue 3: Benefits, Comparison with Template Syntax, and Configuration Guide

This article examines how JSX can be used in Vue 3, compares it with Vue's native template syntax, provides step‑by‑step configuration instructions, and discusses the advantages, disadvantages, and suitable scenarios for adopting JSX in modern frontend development.

JSXJavaScriptTemplate Syntax
0 likes · 15 min read
Using JSX in Vue 3: Benefits, Comparison with Template Syntax, and Configuration Guide
Sohu Tech Products
Sohu Tech Products
Aug 2, 2023 · Frontend Development

How JSX Works and Building a Simple JSX Parser from Scratch

This article explains the fundamentals of JSX, why JSX expressions must have a single root element, and provides a step‑by‑step guide with complete code to implement a minimal JSX parser that translates JSX syntax into plain JavaScript createElement calls.

Code GenerationJSXJavaScript
0 likes · 13 min read
How JSX Works and Building a Simple JSX Parser from Scratch
Laravel Tech Community
Laravel Tech Community
Jun 4, 2023 · Frontend Development

New Features in TypeScript 5.1: Undefined‑Returning Functions, Unrestricted Getters/Setters, JSX Namespace Tags, and More

TypeScript 5.1 introduces smarter checks for undefined‑returning functions, removes getter/setter type restrictions, adds support for JSX tags with namespace attributes, provides @param JSDoc snippet completion, decouples JSX element and tag type checking, and includes several other enhancements and breaking changes.

JSXJavaScriptTypeScript
0 likes · 4 min read
New Features in TypeScript 5.1: Undefined‑Returning Functions, Unrestricted Getters/Setters, JSX Namespace Tags, and More
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 13, 2022 · Frontend Development

Why React Excels in Cross‑Platform Dynamic Development: Core Advantages and Implementation Details

The article explains why React is well‑suited for cross‑platform dynamic development, detailing its data‑driven model, JSX‑to‑virtual‑DOM workflow, fiber architecture, Taro reconciler adaptations, and independent event system, and shows how React can serve as both a DSL and a full runtime for mobile and web.

Cross‑PlatformFiberJSX
0 likes · 12 min read
Why React Excels in Cross‑Platform Dynamic Development: Core Advantages and Implementation Details
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 12, 2022 · Frontend Development

Why React Excels in Cross‑Platform Dynamic Development: Core Advantages and Implementation

The article explains how React’s data‑driven model, JSX‑to‑virtual‑DOM workflow, fiber architecture, independent event system, and adaptations such as React Native and Taro enable efficient cross‑platform dynamic applications, and provides code examples and practical guidance for developers.

Cross‑PlatformFiberJSX
0 likes · 13 min read
Why React Excels in Cross‑Platform Dynamic Development: Core Advantages and Implementation
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 11, 2022 · Frontend Development

Why React Excels in Cross‑Platform Dynamic Development: Core Advantages and Implementation Details

The article explains how React’s data‑driven model, JSX‑to‑virtual‑DOM workflow, fiber architecture, independent event system, and adaptations in frameworks like React Native and Taro enable efficient cross‑platform dynamic applications, while comparing it with traditional template‑based approaches.

Cross‑PlatformFiberJSX
0 likes · 13 min read
Why React Excels in Cross‑Platform Dynamic Development: Core Advantages and Implementation Details
php中文网 Courses
php中文网 Courses
Sep 15, 2022 · Frontend Development

Advanced Vue 3 Techniques: createVNode, render, JSX/TSX, Dependency Injection, Composition API, and Global Component Registration

This article presents a comprehensive guide to Vue 3 advanced features, covering the use of createVNode and render for dynamic component creation, JSX/TSX advantages, dependency injection with provide/inject, Composition API patterns, utility hooks, global component registration, script‑setup syntax, and the latest v‑model usage, all illustrated with practical code examples.

Composition APIGlobal ComponentsJSX
0 likes · 19 min read
Advanced Vue 3 Techniques: createVNode, render, JSX/TSX, Dependency Injection, Composition API, and Global Component Registration
IT Services Circle
IT Services Circle
Feb 3, 2022 · Frontend Development

Best Practices for Conditional Rendering in React JSX

This article explains common pitfalls when using conditional expressions in React JSX—such as rendering zero, operator precedence, ternary nesting, and using JSX as a condition—and provides clear recommendations like explicit boolean checks, parentheses, key usage, and avoiding overly complex ternary operators.

Best PracticesConditional RenderingJSX
0 likes · 8 min read
Best Practices for Conditional Rendering in React JSX
ByteDance Dali Intelligent Technology Team
ByteDance Dali Intelligent Technology Team
Jun 16, 2021 · Frontend Development

Exploring JSX in Vue 3: Concepts, Usage Scenarios, and Performance

This article presents a comprehensive overview of JSX support in Vue 3, covering its origins, differences from template syntax, migration details, practical usage scenarios, handling of props and slots, performance considerations, and the underlying compilation mechanisms such as PatchFlags and SlotFlags.

BabelComponentJSX
0 likes · 14 min read
Exploring JSX in Vue 3: Concepts, Usage Scenarios, and Performance
ByteDance Web Infra
ByteDance Web Infra
May 22, 2021 · Frontend Development

Understanding JSX in Vue 3: Concepts, Benefits, and Performance

This article presents a comprehensive overview of using JSX in Vue 3, covering its basic concepts, why Vue supports JSX, the changes introduced in Vue 3, practical scenarios, implementation details, and performance comparisons with the traditional template syntax.

BabelComponentJSX
0 likes · 13 min read
Understanding JSX in Vue 3: Concepts, Benefits, and Performance
Xianyu Technology
Xianyu Technology
Jan 5, 2021 · Frontend Development

React JSX to Svelte AST Conversion Overview

The article outlines a tool that converts React JSX into a Svelte abstract syntax tree by stripping framework‑specific features, mapping elements, attributes, mustache templates and function JSX, translating control structures, providing a compatibility “svelte‑hooks” layer, handling ECMA‑AST differences and CSS, noting larger bundle size but potential for further static compilation and optimization.

ASTJSXReact
0 likes · 8 min read
React JSX to Svelte AST Conversion Overview
Laravel Tech Community
Laravel Tech Community
Nov 4, 2020 · Frontend Development

TypeScript 4.1 RC: New Features and Improvements

The TypeScript 4.1 release candidate introduces several major enhancements, including template literal types, key remapping in mapped types, recursive conditional types, the noUncheckedIndexedAccess flag, optional baseUrl for path mapping, default checkJs behavior, and support for React 17 JSX and JSXdev features.

4.1JSXMapped Types
0 likes · 2 min read
TypeScript 4.1 RC: New Features and Improvements
政采云技术
政采云技术
Jul 5, 2020 · Frontend Development

Vue 3 JSX Migration Guide

This article provides a comprehensive guide to migrating Vue 2 projects to Vue 3 using JSX, covering Vue 3’s new features, JSX basics, migration strategies, plugin configurations, code examples, and best practices for developers transitioning to the new ecosystem.

Ant Design VueJSXMigration
0 likes · 14 min read
Vue 3 JSX Migration Guide
UC Tech Team
UC Tech Team
Dec 21, 2018 · Frontend Development

HTM: A Zero‑Compiler JSX‑Like Syntax for JavaScript

HTM is a pure‑JavaScript library that implements a JSX‑like syntax without a compiler, offering sub‑kilobyte bundle sizes, seamless integration with React/Preact, ergonomic syntax enhancements, and a new Babel plugin that dramatically improves performance and flexibility for frontend developers.

BabelHTMJSX
0 likes · 4 min read
HTM: A Zero‑Compiler JSX‑Like Syntax for JavaScript