Sign in
Log inSign up
$€®¥09@

3.7K reads

8 comments

BBS Tester
BBS Tester
Mar 3, 2024

Hi , Can you please help , how to setup dev environment for spfx viva connection. Currently i have 30 web-parts under my production workspace. I need to host this in same tenant with dev environment.

·
·2 replies
$€®¥09@
$€®¥09@
Author
·Mar 4, 2024

Hi, I'm not sure if I understand you correctly or what you are planning to do! You want two different "environments" on the same tenant with possibly different versions of the web part(s)? If yes, create a site collection app catalog and deploy it in the site collection only.

·
BBS Tester
BBS Tester
Mar 6, 2024

Thanks Let me try out same. :) $€®¥09@

1
·
Miguel Carreon
Miguel Carreon
Jun 28, 2024

How can I use it in SPFx React with hooks ?

·
·4 replies
$€®¥09@
$€®¥09@
Author
·Jun 28, 2024

Hi Miguel Carreon What do you want to do? Do you want to use this class component in a functional component (hooks) in SPFx? Or would you like to know how you can "rebuild" the component with hooks?

·
Miguel Carreon
Miguel Carreon
Jun 28, 2024

$€®¥09@Hi, I like to know how I can rebuild the component with hooks

·
Miguel Carreon
Miguel Carreon
Jun 28, 2024

$€®¥09@ Hi, I like to know how I can rebuild the component with hooks

·
$€®¥09@
$€®¥09@
Author
·Jun 28, 2024

Miguel Carreon The current code of the class component can be found here

You need to change the class component to a function component. The current component is stateless, so you need to replace all class methods with functions and it should work.

Alternatively, you can use my npm package @spfxappdev/fluentui-react-controls which contains also this control

A Live demo (PnP community call) is here: youtube.com/watch?v=nxG7n4e2Xlc

·