livlog

  • 홈
  • 태그
  • 방명록

Custom Hook 2

Section 16: Handling Forms & User Input - Working with Values, Validation & State

The goals 💪🏻What's Complex About Forms? ✌🏻Handling Inputs & Forms with React 👍🏻Simplifications So here we wrote the first code to get the value of input whenever user types something. We get the event and extract the value of it. It updates the state of variable 'enteredName'. const formSubmitssionHandler = (event) => { event.preventDefault(); }; And add this code below. Why? We are dealing with..

React - The Complete Guide 2022.12.02

Section 15: Building Custom Hooks - Re-using Logic

The goals 💪🏻What & Why? ✌🏻Building a Custom Hook 👍🏻Custom Hook Rules & Practices Make our own React Hook in Hooks folder and we can use it as Hook anywhere! The most important thing is naming. It should start with 'use' and its purpose is to make component slimmer. Since we are getting 'forward' as parameter in function, we should set it as a denpendency in useEffect. With this way, we can refac..

React - The Complete Guide 2022.12.01
이전
1
다음
더보기
프로필사진

livlog

공지사항

  • 분류 전체보기 (126)
    • 2022 Web Development Bootca.. (36)
    • JavaScript - The Complete G.. (31)
    • React - The Complete Guide (19)
    • React - From A To Z (6)
    • React - Practical Projects (3)
    • Vue.js - The Complete Guide (15)
    • Node.js - Web Programming F.. (1)
    • 2023 Trialbee Internship - .. (15)

Tag

axios, API, Database, firebase, input, jsx, css tips, form, node.js, Promise, Component, spa, ejs, object, react, class, cors, Props, express, useState,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/06   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바