In the Django Rest Framework SessionAuthentication documentation it says that
Warning: Always use Django's standard login view when creating login pages. This will ensure your login views are properly protected.
Why should I use Django's standard login views on login pages? If I would like to make my own login views (for example, in React, Vue or Angular), what I should take into account to make the view "as secure as the Django's standard login view"?