primefaces / primereact

The Most Complete React UI Component Library
https://primereact.org
MIT License
6.15k stars 955 forks source link

Documentation for prime react cdn #6711

Open DebasishWe opened 1 month ago

DebasishWe commented 1 month ago

Describe the bug

Prime react cdn for latest not available. After implementing usestyle hook error comes. Error not coming if "https://unpkg.com/primereact/primereact.all.min.js" is used instead of "core.js". Works fine if i change version 8 but creates error if version greater then 10 Screenshot from 2024-05-31 09-52-20 Screenshot from 2024-05-31 09-53-32

Reproducer

No response

PrimeReact version

CDN

React version

17.x

Language

ALL

Build / Runtime

Create React App (CRA)

Browser(s)

any browser

Steps to reproduce the behavior

On any index.html copy code from https://www.primefaces.org/primereact-v8/setup/ and run in browser.

Expected behavior

No error sholud come in console if core cdn is used. Either fix it or update the cdn

melloware commented 1 month ago

@DebasishWe this is a great first issue if you want to figure it out. If you can provide a working index.html i can update the Documentation like it was in V8.

DebasishWe commented 4 weeks ago

@melloware working version of 8 added here `<!DOCTYPE html>

SliderDemo
` Another method where i need to download all components ` SliderDemo
` Need a solution where there can be reuirement of minimum number of components to be loaded
melloware commented 4 weeks ago

@DebasishWe you might have to include things like hooks/Hooks.js in the v10 version and some other things.

DebasishWe commented 3 weeks ago

@melloware even after including hooks it has other requirements