NivaldoFarias / linkr-frontend

17ᵗʰ Project developed during Driven's Full Stack Develpment Bootcamp

Home Page:https://linkr-fullstack.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Refactor Post file structure

NivaldoFarias opened this issue · comments

A estrutura do arquivo Post/index.jsx tá muito confusa e desnecessariamente longa, até por vezes repetitiva. Necessita uma refatoração urgente.

  1. Create new components. ex.: 'DeletePost'. 'EditPost', 'LinkContainer'
  2. Use 'buildComponent()' component semantic strucuture. Hide HTML, focus on constants, States and Context values. see ref
  3. Alternative to components: generalize response and error functions on update, delete, and post handlers