You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an element type starts with a lowercase letter, it refers to a built-in component like <div> or <span> and results in a string 'div' or 'span' passed to React.createElement. Types that start with a capital letter like <Foo /> compile to React.createElement(Foo) and correspond to a component defined or imported in your JavaScript file.
原文:
/warnings/unknown-prop.html
16 行该句子附带的链接:
/docs/jsx-in-depth.html#user-defined-components-must-be-capitalized
96 行从英语的语法结构上来看,
transform
可能是个名词,uses
是动词,那么
transform
可能表示为:「转换、转换器、转换引擎」
链接部分的原意也提到了「results in / compile to」和转换有关的意思。
(不知道 React 源码是怎么处理的……)
如果将
transform
视为动词,则可以表示为:「转换(使用)、交替、切换、依次」
而
use
可以解释为:「使用、根据」
#111 (comment)
部分备选翻译:
「React JSX 引擎使用大小写约定来区分用户自定义组件和 DOM 标签。」
「React JSX 语法使用大小写约定来区分用户自定义组件和 DOM 标签。」
The text was updated successfully, but these errors were encountered: