@samitouri / QOS-React-2 / commits / 12a4baeca1

[compiler] Port JSX tag classification fix to Rust (not-lowercase is a component) (#36951)

lauren committed Jul 7, 2026 at 09:46 UTC 12a4baeca157fa8ae0cbd6463595ea7f3af10c26
1 file changed +1 -1
compiler/crates/react_compiler_lowering/src/build_hir.rs
+1 -1
@@ -6271,7 +6271,7 @@ fn lower_jsx_element_name(
6271 let tag = &id.name;
6272 let loc = convert_opt_loc(&id.base.loc);
6273 let start = id.base.start.unwrap_or(0);
6274 - if tag.starts_with(|c: char| c.is_ascii_uppercase()) {
6274 + if !tag.starts_with(|c: char| c.is_ascii_lowercase()) {
6275 // Component tag: resolve as identifier and load
6276 let place = lower_identifier(builder, tag, start, loc.clone(), id.base.node_id)?;
6277 let load_value = if builder.is_context_identifier(tag, start, id.base.node_id) {