我计划使用 notion api 制作一些博客。
我想使用 notion api 将 notion 页面降价并显示在我的博客上。
但是,我找不到获取页面内容..
有没有办法使用api导入页面markdown内容?
现在我使用react-hook-form进行登录验证。
但是,当在 input 标签中输入ref={register}时,TypeError: path.split is not a function错误会继续发生 。
import React from 'react';
import {useForm} from "react-hook-form";
import './Auth.css';
export default function Register() {
const {register, errors, watch} = useForm();
return (
<div>
<form>
<label>Email</label>
<input type="email" name="email" ref={register({ required: true})} />
<label>Password</label>
<input type="password" />
<label>Password Confirm</label>
<input type="password"/>
<input type="submit" />
</form>
</div>
);
}
Run Code Online (Sandbox Code Playgroud)
即使我复制并粘贴了示例代码,也会出现同样的错误,我该如何解决呢?