DEV Community

Gurjot-Sidhu
Gurjot-Sidhu

Posted on

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)