From a8b20856031de8286a916d51a840d0914756483d Mon Sep 17 00:00:00 2001 From: Melloware Date: Thu, 9 Jun 2022 15:29:14 -0400 Subject: [PATCH] Fix #2983: Remove doc about shorthand API for SelectItem and MenuModel (#2984) --- pages/setup/index.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pages/setup/index.js b/pages/setup/index.js index 71d6b84765..1ad99b9923 100644 --- a/pages/setup/index.js +++ b/pages/setup/index.js @@ -380,14 +380,6 @@ PrimeReact.cssTransition = false; // Default value is true.
Typescript

Typescript is fully supported as type definition files are provided in the npm package of PrimeReact. A sample typescript-primereact application with create-react-app is available as at github.

-

Note: A shorthand API is available to import APIs such as MenuModel and SelectItem.

- -{` -import { SelectItem } from 'primereact/api'; -import { MenuItem } from 'primereact/api'; -`} - -
Next.js

A sample application based on Next.js is available at github.