How to use Netlify Forms in React JS

  Рет қаралды 6,654

A Designer Who Codes

A Designer Who Codes

Күн бұрын

Пікірлер: 34
@jord_n
@jord_n 4 жыл бұрын
What a coincidence, I was just thinking about how I would get this done, and then I checked my subscriptions. Thanks a lot, this method so much easier than what I was otherwise going to do.
@ADesignerWhoCodes
@ADesignerWhoCodes 4 жыл бұрын
You are so welcome! I'm really stoked it helped.
@heatherherries9359
@heatherherries9359 Жыл бұрын
Thank you! Great informative info! Might think about making an add on with form validation. Thank you again!
@ADesignerWhoCodes
@ADesignerWhoCodes Жыл бұрын
Ooh. Good idea
@anthonyradin7166
@anthonyradin7166 3 жыл бұрын
Thank you. You've contributed to my education as a react developer. Sincerely, Tony Radin.
@ADesignerWhoCodes
@ADesignerWhoCodes 3 жыл бұрын
Wow. That's so awesome! Happy to help.
@th0mas.p4ttz
@th0mas.p4ttz 3 жыл бұрын
Awesome - just what I was looking for, thank you.
@ADesignerWhoCodes
@ADesignerWhoCodes 3 жыл бұрын
Stoked! You're welcome.
@guicaalmeida
@guicaalmeida 3 жыл бұрын
Great, straightforward video. Thanks!
@ADesignerWhoCodes
@ADesignerWhoCodes 3 жыл бұрын
Very welcome Guilherme.
@eltonsantos8804
@eltonsantos8804 3 жыл бұрын
Hi Teacher! Its amazing, I've been learning a lot things with you! Congrats you are a good professional. Have a good day.
@hillaryvanotten712
@hillaryvanotten712 2 жыл бұрын
This is great thank you!
@ADesignerWhoCodes
@ADesignerWhoCodes 2 жыл бұрын
Netlify Forms rock.
@nikoman71326
@nikoman71326 3 жыл бұрын
Thanks for the video. You don't mention anything about including static HTML form to index.html. It doesn't work without it. Netlify doesn't recognize the form without these lines. Please correct me if I am wrong
@ADesignerWhoCodes
@ADesignerWhoCodes 3 жыл бұрын
I'll eventually do a static HTML video. But I was in a React phase. Yes, some things will different between React and Vanilla HTML with React Forms.
@SeeRjED
@SeeRjED 3 жыл бұрын
​@@ADesignerWhoCodes From what I found you do need to add a static (hidden) HTML version of the form in index.html (or any html file) for it to work with your React app.
@heatherherries9359
@heatherherries9359 Жыл бұрын
Yep tried it and it doesnt work. Back to the drawing board. Sigh.
@hamitaksln
@hamitaksln 3 жыл бұрын
Great tutorial. Thanks.
@ADesignerWhoCodes
@ADesignerWhoCodes 3 жыл бұрын
Thank you so much!
@manueljarrin4582
@manueljarrin4582 Жыл бұрын
Can you do an ajax form submission example using react?
@tjtechi4448
@tjtechi4448 4 жыл бұрын
what about I don't want it to go to the Netlify website after submission.? Please can you show that?
@ADesignerWhoCodes
@ADesignerWhoCodes 4 жыл бұрын
Yep! It’s in the works
@ADesignerWhoCodes
@ADesignerWhoCodes 4 жыл бұрын
Check it out. kzbin.info/www/bejne/ip67o31opJZjeJI
@mikemoradi1084
@mikemoradi1084 2 жыл бұрын
Good video, but it didn't work initially. I had to add a hidden html form in my index.html file like this. . Without it I would get a 404 error when submitted.
@ADesignerWhoCodes
@ADesignerWhoCodes 2 жыл бұрын
Oh interesting. I keep the honeypot in by default. But it usually works without. That’s good to know.
@RakeshKumar-zj4hu
@RakeshKumar-zj4hu 4 жыл бұрын
Is this react or Next with react? I'm getting a warning of onSubmit is a function and not a string. :(
@ADesignerWhoCodes
@ADesignerWhoCodes 4 жыл бұрын
It’s React. I’m using Gatsby but it is just a react framework.
@RakeshKumar-zj4hu
@RakeshKumar-zj4hu 4 жыл бұрын
and hence you did not see warning?
@ADesignerWhoCodes
@ADesignerWhoCodes 4 жыл бұрын
Nope. My terminal came back success. I’m sorry you’re struggling.
@KHANSOFFICIAL
@KHANSOFFICIAL 3 жыл бұрын
Any solutions for this
@prajwalpatankar600
@prajwalpatankar600 3 жыл бұрын
My form isnt visible on netlify, and i get error 404 on submitting, can anyone help me out?
@ADesignerWhoCodes
@ADesignerWhoCodes 3 жыл бұрын
Hmmm. Double check the URL structure. An error 404 (probably the most famous of all of the error numbers) is page not found. Double check it works on the dev side (I use gatsby so for me it's gatsby develop). If it doesn't work locally, it won't work on Netlify. You're gonna get this Prajawal. It's usually something small. I remember one time I used a dash (-) instead of an underscore (_) and spent an hour trying to figure out why my page wouldn't so up.
@prajwalpatankar600
@prajwalpatankar600 3 жыл бұрын
After struggling for 10hrs, i realised that i had used routing in my App.js, and the component with the form was thus not recognised by netlify. I used react-snapshot and got it corrected. Thanks 🙏🙏
@ADesignerWhoCodes
@ADesignerWhoCodes 3 жыл бұрын
@@prajwalpatankar600 it’s always the small things I tell ya.
Easy & Simple Contact Form using Netlify Forms (with spam prevention)
14:45
A Designer Who Codes
Рет қаралды 20 М.
Modal in ReactJS - Code a React Modal Tutorial using Hooks
18:26
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
Top Trending Open-Source GitHub Projects This Week | AI, Coding, Search & More! #116
16:37
ManuAGI - AutoGPT Tutorials
Рет қаралды 2,4 М.
How OnlyFans Grew Its Revenue by 2000% in Just Four Years | WSJ The Economics Of
10:11
Send Email With React (No Backend Required)
16:31
ZinoTrust Academy
Рет қаралды 77 М.
How to Setup Netlify Forms using Gatsby JS & React Bootstrap
29:55
A Designer Who Codes
Рет қаралды 2,2 М.
SEO & Gatsby // How Gatsby Works in terms of Search Engine Optimization
18:41
A Designer Who Codes
Рет қаралды 4,4 М.
I built the same app 10 times // Which JS Framework is best?
21:58
Fireship
Рет қаралды 2,6 МЛН
Subtle, yet Beautiful Scroll Animations
5:04
Beyond Fireship
Рет қаралды 1,8 МЛН
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН