Submit form in React.js using Ajax

前端 未结 2 519
猫巷女王i
猫巷女王i 2021-02-10 01:08

Creating my first application in React.js and want to submit contact form to a email with Ajax. I\'ve used this solution as guideline: https://liusashmily.wordpress.com/author/l

2条回答
  •  误落风尘
    2021-02-10 01:28

    As React is UI component framework you can use third party library for ajax post. https://www.npmjs.com/package/react-axios

    Here is an example of how to use this. https://handyopinion.com/reactjs-post-form-with-ajax/

提交回复
热议问题