DEV Community

Gurjot-Sidhu
Gurjot-Sidhu

Posted on

2

React Prime or Prime React???

No this is not a paid subscription on behalf of Amazon. PrimeReact is library of components available within React. I have used Prime React in 2 of my previous applications and plan on implementing it with the app I am building now. The reason why I love Primereact Components is because of its ease of use. All you have to do as a developer is install primereact with
npm install primereact --save and
npm install primeicons --save

after that you just browse the list of components on the website and then import directly like so

import {Accordion} from 'primereact/accordion;

thats it.

Now if you want to use the component you can just write it directly into you render function like so:

'

Thats it, It is super easy to use and really easy to adjust with some simple built in CSS

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay