0

I am new to Reactjs and I would like to use this kind of dropdown in my app. There is mentioned as:-

npm i @bit/primefaces.primereact.dropdown . When I do so I get following error:-

npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/@bit%2fprimefaces.primereact.dropdown - Not found npm ERR! 404 npm ERR! 404 '@bit/primefaces.primereact.dropdown@latest' is not in the npm registry. npm ERR! 404 You should bug the author to publish it (or use the name yourself!) npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url.

How do I install it and us this in my app?

Jasper de Vries
  • 19,370
  • 6
  • 64
  • 102
masiboo
  • 4,537
  • 9
  • 75
  • 136
  • Sure this is PrimeFACES related? I strongly doubt it. Click the PrimeFaces tag and read it. – Kukeltje Feb 12 '20 at 07:35
  • I just don't see that package in the npm registry. – Drew Reese Feb 12 '20 at 07:36
  • can you suggest any other similar component that I can use in my reactjs app? – masiboo Feb 12 '20 at 07:37
  • @masiboo I don't know what specifically you want from that dropdown/select component/package, but there are [tons of alternatives](https://www.npmjs.com/search?q=select). `React-Select` is really common. – Drew Reese Feb 12 '20 at 18:41

1 Answers1

0

this is how your install primereact in your React App: npm install primereact --save and then import whatever you want like this:

import {Dropdown} from 'primereact/dropdown';

Make sure to install its dependencies and peer dependencies: react-transition-group, classnames, primeicons

Check this out.: https://www.primefaces.org/primereact/#/setup

and this : https://www.primefaces.org/primereact/#/dropdown

Anish Arya
  • 518
  • 1
  • 7
  • 24