Skip to content

Commit

Permalink
Fix #2983: Remove doc about shorthand API for SelectItem and MenuModel (
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Jun 9, 2022
1 parent d6359de commit a8b2085
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pages/setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,14 +380,6 @@ PrimeReact.cssTransition = false; // Default value is true.
<h5>Typescript</h5>
<p>Typescript is fully supported as type definition files are provided in the npm package of PrimeReact. A sample <a href="https://github.com/primefaces/primereact-examples/tree/main/cra-basic-ts" className="layout-content-link">typescript-primereact</a> application with create-react-app is available as at github.</p>

<p>Note: A shorthand API is available to import APIs such as MenuModel and SelectItem.</p>
<CodeHighlight lang="js">
{`
import { SelectItem } from 'primereact/api';
import { MenuItem } from 'primereact/api';
`}
</CodeHighlight>

<h5>Next.js</h5>
<p>A <a href="https://github.com/primefaces/primereact-examples/tree/main/nextjs-basic" className="layout-content-link">sample application</a> based on Next.js is available at github.</p>
<div className="video-container">
Expand Down

0 comments on commit a8b2085

Please sign in to comment.