Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sohanemon/easy-fashion


https://github.com/sohanemon/easy-fashion

codemon react react-router tailwindcss

Last synced: 4 days ago
JSON representation

Awesome Lists containing this project

README

        

# Navlink

consider data as `const data = ["home", "products", "contact", "about"];`

## to style the navlink

```
pathname ===`/${el}` || (pathname === "/" && el === "home") ? "border-b-2" : ""
```

## link home route as '/' instead of '/home'

```

to={el === "home" ? "" : el}
```

## sometimes height requires in sticky element

```
style={{ position: "sticky", top: "0px" , height: '100vh'}}
```

> sticky may rarely on grid items