`React.Attributes` should be implemented
还没有人认领这个 Issue。
评估
调研方向
首先检查现有的 prop 标记符号和草稿 PR #39,因为 issue 中没有指定源文件或测试。使用 Lua 示例作为预期行为,并确认 React.Attributes 的值会应用到实例上。
由索引模型根据 Issue 内容生成。
描述
This will allow attributes to be applied to instances. While I've not had a need for this myself, there's others who have and I think it'd be an appropriate addition to the prop marker symbols.
Example:
return e("TextLabel", {
[React.Attributes] = {
Test = 100,
MyBool = false
}
})
Draft PR for full changes proposed:
#39
- 主要语言
- Luau
- 星标
- 569
- 派生
- 25
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
jsdotlua/react-lua 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 72/100
-
难度 1/5 1 小时以内 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 45/100
-
难度 5/5 一周以上 新手友好度 25/100
-
难度 2/5 1-3 小时 新手友好度 48/100
查看 jsdotlua/react-lua 的全部 Issue
相似的 Issue
-
Type/Bug
难度 2/5 1-3 小时 新手友好度 78/100
OpenNSW/nsw-srilanka#497 ·
-
react-doctor severity:warning tech-debt
难度 2/5 1-3 小时 新手友好度 82/100
digidem/comapeo-cloud-app#401 ·
-
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 82/100
-
bug
难度 2/5 1-3 小时 新手友好度 86/100
zostera/django-bootstrap4#894 ·