Skip to content
Snippets Groups Projects
Select Git revision
  • 8e525671a06cf658d98a07c1d49548d504c782f6
  • main default protected
2 results

MakeDay.jsx

Blame
  • MakeDay.jsx 346 B
    export default function MakeDay(){
        const days = [];
        const date = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
    
        for(let i = 0; i < 7; i++){
            days.push(
                <th className="table_head">{date[i]}</th>
            )
        }
    
        return(
            <thead>
            <tr>
                {days}
            </tr>
            </thead>
        );
    }