我有这个项目,在这个项目中我有这两个文件,第一个文件是表单文件,第二个文件是服务文件,我想访问服务文件中包含的答案,但是我有一个错误:
Uncaught TypeError: Object(...)(...).then is not a function
我该怎么解决呢?
这个文件包含一个表单,通过这个表单,我想调用getjobs函数。
import InputAdornment from "@material-ui/core/InputAdornment";
import TextField from "@material-ui/core/TextField"
我想把它放到一个OnChange中,这个事件用ReactJS调用两个不同的函数。我已经尝试了几种形式,但都没有成功。我试过了:
/*This is my text area, into ONCHANGE I put options shown below*/
<textarea name="NAME" id="ID" ONCHANGE placeholder="PLACEHOLDER" maxLength="4000" rows="7" class="form-control" require
你好,我正在ReactJS上做一个注册表格,注册表格有名字,姓氏,电子邮件,密码,生日,上传图片等字段。我设法把上传到服务器上的图像上传到服务器上,但是我不能添加其他字段--名字、姓氏、电子邮件、密码和生日,它有一个非法参数的错误:未定义的字符串,我能知道我做错了什么吗?谢谢。
ReactJS提交事件
import React, { Component } from "react";
import { Link } from "react-router-dom";
import DatePicker from "react-datepicker"
我正在尝试使用Material UI和React创建一个表单。到目前为止,这就是我所拥有的:
import React from 'react'
import {Button, TextField} from '@material-ui/core'
import AddIcon from '@material-ui/icons/Add'
import PropTypes from 'prop-types'
class AddItem extends React.Component {
state = {
我试图写一个from,但是它抛出了这个错误:
Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You m