Tag: components

The Anatomy Of My Ideal React Component
Post

The Anatomy Of My Ideal React Component

Originally posted on dev. import { useEffect, useState } from 'react' import { Link } from 'react-router-dom' import styled from 'styled-components' import tw from 'twin.macro' import { USER_ROUTES, useUser } from 'modules/auth' import { Loader } from 'modules/ui' import { usePost } from 'modules/posts' import { EmptyFallback } from './emptyFallback' const StyledContainer = styled.div` ${tw`w-100...