일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- ㄷㅌ
- 노드교과서
- toString#String
- Beesbeesbees
- https://dasima.xyz/%EC%9E%90%EB%B0%94%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8-%EC%A0%9C%EA%B3%B1-math-pow-%EA%B3%84%EC%82%B0/
- https://lo-victoria.com/introduction-to-redux-toolkit-for-beginners
- 자바스크립트#JS#slice#splice
- 자바스크립트
- children vs childrenNodes
- 내장고차함수
- JS#3일차달리자#초반인데#시간금방~
- cmarket
- 자바스크립트#조건문#문자열
- 자바스크립트#JS#var#let#const#undefined#null
- @redux-toolkit
- User Flow
- removeCookie
- UX
- slice/splice/split
- redux상태유지
- js
- https://www.daleseo.com/js-array-slice-splice/
- 헷갈린다~
- UI
- variable#function
- dom
- react
- CSS
- https://developer-talk.tistory.com/299
- for~in/for~of
- Today
- Total
목록Project/ChatProject (5)
Daily Front_Minhhk
빌드에서 Storage 를 눌러 생성! 스토리지 위치는 당연 서울! 공식문서를 살펴보자 (Storage) firebase.js 파일에서 const storage = getStorage(app) import { initializeApp } from "firebase/app"; import { getStorage } from "firebase/storage"; // TODO: Replace the following with your app's Firebase project configuration // See: https://firebase.google.com/docs/web/learn-more#config-object const firebaseConfig = { // ... storageBucket: ''..
이메일, 비밀번호 기반 로그인 우선 이메일과 비밀번호를 통한 로그인을 할려면 signInWithEmailAndPassword 를 사용하자! 공식문서를 참조하면서 import { getAuth, signInWithEmailAndPassword } from "firebase/auth"; const auth = getAuth(); signInWithEmailAndPassword(auth, email, password) .then((userCredential) => { // Signed in const user = userCredential.user; // ... }) .catch((error) => { const errorCode = error.code; const errorMessage = error.mes..
빌드 / 실시간 데이터베이스 에서 새로만들기 클릭! 위치는 싱가포르 asia 서버로 두고, 생성한다. 예제는 이렇다!! getDatabase() 가져오는 것과, set(ref()) 이부분만 잘 적용 하면 된다. import { getDatabase, ref, set } from "firebase/database"; function writeUserData(userId, name, email, imageUrl) { const db = getDatabase(); set(ref(db, 'users/' + userId), { username: name, email: email, profile_picture : imageUrl }); } by 공식문서 참조 웹에서 데이터 읽기 및 쓰기 | Firebase 실시간 ..
1. 파이어베이스 회원가입 (이메일 & 패스워드) 공식문서 예제는 이렇다. getAuth 는 firebase.js 에서 export 한 값을 사용 했다. signInWithEmailAndPassword 과 updateProfile 을 사용하여 우선 가입의 사이클을 완성 해 보았다. 비동기로 import { getAuth, signInWithEmailAndPassword } from "firebase/auth"; const auth = getAuth(); signInWithEmailAndPassword(auth, email, password) .then((userCredential) => { // Signed in const user = userCredential.user; // ... }) .catch(..
공식문서는 이렇다. Example에서 일단 복사 해서 수정 했다. https://react-hook-form.com/get-started#Quickstart import { useForm } from "react-hook-form"; export default function App() { const { register, handleSubmit, watch, formState: { errors } } = useForm(); const onSubmit = data => console.log(data); console.log(watch("example")); // watch input value by passing the name of it return ( /* "handleSubmit" will valid..