import './ExpenseItem.css' export default function ExpenseItem(){ const expenseDate=new Date(2021,2,8) const expenseTitle='Car Insurance' const expenseAmount=123.354 let arr=[2,3,4] console.log(typeof expenseDate) console.log(typeof arr) return( <div className='expense-item '> <div> {expenseDate.toISOString()} </div> <div className='expense-item__description'> <h2> {arr} </h2> <div className='expense-item__price'> ${expenseAmount} </div> </div> </div> ); }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter