How to validate dynamic field data on the react client-side and node server-side?
问题 I have created dynamic input field in the React component, but don't know how to validate this dynamic field data on the client-side when onChange and onSubmit event occurred. I usually use joi or yup to validate data, but don't know how I can validate dynamic field data. Here is my code: import React, { useState } from 'react'; import { v4 as uuidV4 } from 'uuid'; import './styles.css'; const createFieldsObject = (fields) => ({ id: uuidV4(), fields, }); const DynamicTable = ({ fields }) => {