简体   繁体   English

在 marmelab/react-admin 模板中提交表单

[英]Form Submission in marmelab/react-admin template

I tried to utilize reactAdmin but i have some questions in file hierarchy why .ts , tsx and .js files are there in one use of single screen , May i know the usage of that and how to handle the API's integration within interlinking the data.我尝试使用reactAdmin,但我在文件层次结构中有一些问题,为什么 .ts 、 tsx 和 .js 文件在单个屏幕的一次使用中存在,我可以知道它的用法以及如何在互连数据中处理 API 的集成。

And also is there any solutions of handling .tsx functions or components in .js file as im very much familiar with .js than ts or tsx.并且还有处理 .js 文件中的 .tsx 函数或组件的任何解决方案,因为我对 .js 非常熟悉,而不是 ts 或 tsx。

React AdminA Web Framework for B2B applicationsmarmelab.com React Admin 适用于 B2B 应用程序的 Web 框架marmelab.com

They typescript files which gonna be eventually compiled to javascript.他们将最终编译为 javascript 的typescript文件。 So you can just use javascript code as reference, there is no need to look at those .ts or/and .tsx file, you should look at them when you want to learn typescript .所以你可以直接使用javascript代码作为参考,不需要看那些.ts或/和.tsx文件,当你想学习typescript时应该看看它们。

It checks variable types at compile time in 'your code'.它在编译时检查“您的代码”中的变量类型。

If you are new to javascript, first learn it, and not necessary to learn typescript , but you "may may" need it in future.如果您不熟悉 javascript,请先学习它,而不必学习typescript ,但您将来“可能”需要它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM