I’m new here and this is my first post on the forums. I’ve been learning React for a while and I have a question about the best practice for something.
I am building a React app and trying to follow the pattern of separating presentational and container components as described here.
I’m confused as to where client-side validation would sit in this pattern?
For example, if I have the following components:
- InputField (rendering an )
- LoginForm (rendering a with for username and password)
- LoginPage (renders the and handles making API request)
My question is, where would client-side form validation fit into this? Would it go into
<LoginForm> or should it go in the
Appreciate any advice anyone can offer!