[노마드코더] #6 Finishing Up
Cleaning JS Home과 Auth 페이지를 리팩토링해보자 [src/components/PostFactory.js] import React, { useState } from "react"; import { v4 as uuidv4 } from "uuid"; import { storageService, dbService } from "fbase"; const PostFactory = (props) => { const [post, setPost] = useState(""); const [attachment, setAttachment] = useState(null); const onSubmit = async (event) => { event.preventDefault(); let attachmentUrl ..