NextJS) 뒤로가기 버튼, router.back, back
2022. 12. 22. 12:35
Frontend/React & React.Native &Next.js
router.back()
날짜 정렬, 시간 정렬
2022. 12. 19. 23:06
Backend 언어 및 프레임워크/Javascript- Node, express, Nest
오름차순 items = items.sort((a:any, b:any)=> Number(new Date(a.lastUpdatedAt)) - Number(new Date(b.lastUpdatedAt))) 내림차순 마지막에 reverse() 를 추가한다 items = items.sort((a:any, b:any)=> Number(new Date(a.lastUpdatedAt)) - Number(new Date(b.lastUpdatedAt))).reverse()
TailWindCSS) Set-up for react-native
2022. 12. 13. 01:25
Frontend/HTML, CSS, DOM, jQuery
https://www.nativewind.dev/tailwind/typography/font-size
NextJS) 텍스트 복사기능
2022. 12. 9. 11:31
Frontend/React & React.Native &Next.js
const handleCopyText = async(text:string) =>{ try { await navigator.clipboard.writeText(text); alert('텍스트가 복사되었습니다.'); } catch (e) { alert('복사에 실패하였습니다'); } } handleCopyText(data.contractAddress)} fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">