# Demo Plugins (React & Vanilla JS)

**URL:** <https://forums.creativeclouddeveloper.com/t/demo-plugins-react-vanilla-js/3361>\
**Category:** Photoshop\
**Created:** [July 23, 2021, 12:28pm UTC](https://forums.creativeclouddeveloper.com/t/demo-plugins-react-vanilla-js/3361 "2021-07-23T12:28:17Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![simonhenke](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/simonhenke/32/957_2.png) [@simonhenke](https://forums.creativeclouddeveloper.com/u/simonhenke)\
**Post date:** [July 23, 2021, 12:28pm UTC](https://forums.creativeclouddeveloper.com/t/demo-plugins-react-vanilla-js/3361/1 "2021-07-23T12:28:17Z")

</div>

For yesterday’s workshop I had created two demonstration projects, one in vanilla JS (with two additional versions with more functionality) and one in React.  
I just realized I didn’t have the React plugin in a repo yet, so I’ve added one for that, too.

Maybe the plugins can help some people that are new to UXP (or React), so I wanted to share them here, too. Sometimes I think it’s refreshing to look at some real code instead of just documentation 😊 Please keep in mind that these aren’t finished plugins, just demos to explain some of the concepts.

[1) Scale Multiple Layers](https://github.com/simonhenke/uxp-workshop)

![workshop](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/2X/9/9265cdf4ce8405cc4192a5194d9653c54714f77f.gif)

[1.1) Scale Multiple Layers (Width / Height & Lock Ration)](https://github.com/simonhenke/uxp-workshop/tree/width-height)

![workshop task 1](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/2X/a/a1599a4ec6162604850772e2f613083f1fe59542.gif)

[1.2) Scale Multiple Layers (Event Listening + Synchronize Layers)](https://github.com/simonhenke/uxp-workshop/tree/event-listening)

![workshop task 2](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/2X/1/1a8ef4ef316d85646f90459020324836d4a26f2c.gif)

[2) Layer Specific Notes (React)](https://github.com/simonhenke/photoshop-layer-notes)

![react-demo](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/2X/a/a597b772461e8f90e1a636ab930c04697013501d.gif)

* * *

Thanks again for everyone who joined us yesterday, it was a great event!

---

<div class="post-metadata">

**Author:** ![bootsie123](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/bootsie123/32/1489_2.png) [@bootsie123](https://forums.creativeclouddeveloper.com/u/bootsie123)\
**Post date:** [July 23, 2021, 4:13pm UTC](https://forums.creativeclouddeveloper.com/t/demo-plugins-react-vanilla-js/3361/2 "2021-07-23T16:13:27Z")

</div>

Looks awesome! I’m sure people will definitely find this useful. There’s actually a whole repository for UXP plugin samples for Photoshop if you’re interested in added them there.

It can be found [here](https://github.com/AdobeDocs/uxp-photoshop-plugin-samples)

---

<div class="post-metadata">

**Author:** ![andrew158](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@andrew158](https://forums.creativeclouddeveloper.com/u/andrew158)\
**Post date:** [July 25, 2021, 2:56am UTC](https://forums.creativeclouddeveloper.com/t/demo-plugins-react-vanilla-js/3361/3 "2021-07-25T02:56:42Z")

</div>

@simonhenke that’s great, thank you! Is there somewhere we can view recordings of any of the content or workshops?

---

<div class="post-metadata">

**Author:** ![simonhenke](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/simonhenke/32/957_2.png) [@simonhenke](https://forums.creativeclouddeveloper.com/u/simonhenke)\
**Post date:** [July 25, 2021, 11:04am UTC](https://forums.creativeclouddeveloper.com/t/demo-plugins-react-vanilla-js/3361/4 "2021-07-25T11:04:58Z")

</div>

@andrew158 The workshop wasn’t recorded, sorry!

---

<div class="post-metadata">

**Author:** ![RicoHolmes](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/ricoholmes/32/1572_2.png) [@RicoHolmes](https://forums.creativeclouddeveloper.com/u/RicoHolmes)\
**Post date:** [July 25, 2021, 4:43pm UTC](https://forums.creativeclouddeveloper.com/t/demo-plugins-react-vanilla-js/3361/5 "2021-07-25T16:43:15Z")

</div>

It was a superb event, and a superb presentation Simon, thank you.  
Thank you for these too - as you say, always good to have real-world reference material when learning (as I am with React sonce your session 😉 )

---

<div class="post-metadata">

**Author:** ![simonhenke](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/simonhenke/32/957_2.png) [@simonhenke](https://forums.creativeclouddeveloper.com/u/simonhenke)\
**Post date:** [July 25, 2021, 5:47pm UTC](https://forums.creativeclouddeveloper.com/t/demo-plugins-react-vanilla-js/3361/6 "2021-07-25T17:47:43Z")

</div>

Thanks Rico! 😊  
I’m sure you’ll be a React fan pretty soon, then 😉 (if you aren’t already)

---

<div class="post-metadata">

**Author:** ![Pierre\_G](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/pierre_g/32/971_2.png) [@Pierre\_G](https://forums.creativeclouddeveloper.com/u/Pierre_G)\
**Post date:** [July 26, 2021, 2:41pm UTC](https://forums.creativeclouddeveloper.com/t/demo-plugins-react-vanilla-js/3361/7 "2021-07-26T14:41:14Z")

</div>

Hi Simon! Thank you ever so much for the quality of the workshop. It has been much help especially regarding React. That’s my next step. What would you say again that React has and Vanilla hasn’t?  
Cheers 🙂

---

<div class="post-metadata">

**Author:** ![simonhenke](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/simonhenke/32/957_2.png) [@simonhenke](https://forums.creativeclouddeveloper.com/u/simonhenke)\
**Post date:** [July 26, 2021, 3:39pm UTC](https://forums.creativeclouddeveloper.com/t/demo-plugins-react-vanilla-js/3361/8 "2021-07-26T15:39:06Z")

</div>

Hey Pierre! For me, the biggest advantage is the way the view always reflects your app state as well as the whole component architecture. I think both of these points make building a UI (especially an interactive one) way easier and more manageable in the long run.

So instead of messing with the HTML DOM (`document.getElementByID`, `document.createElement`, …) all the time, you’re writing clean and encapsulated components and build the view based on the state (simply JS objects). If the state changes, the component gets re-rendered and everything is up-to-date. Also, reusing generic components across different plugins saves me a lot of time.

There are also some other technical aspects such as better performance (due to the virtual dom) and so on.

---

<div class="post-metadata">

**Author:** ![Pierre\_G](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/pierre_g/32/971_2.png) [@Pierre\_G](https://forums.creativeclouddeveloper.com/u/Pierre_G)\
**Post date:** [July 26, 2021, 3:40pm UTC](https://forums.creativeclouddeveloper.com/t/demo-plugins-react-vanilla-js/3361/9 "2021-07-26T15:40:52Z")

</div>

Hey, thanks for that. I will look into React for sure 🙂

---

<div class="post-metadata">

**Author:** ![RicoHolmes](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/ricoholmes/32/1572_2.png) [@RicoHolmes](https://forums.creativeclouddeveloper.com/u/RicoHolmes)\
**Post date:** [July 27, 2021, 9:55am UTC](https://forums.creativeclouddeveloper.com/t/demo-plugins-react-vanilla-js/3361/10 "2021-07-27T09:55:25Z")

</div>

Well, I have to confess React turned out to be an _explosion_ of rabbitholes for me, so a tad overwhelming while already trying to re-learn other things. I think baby-steps for me while I get fully on top of vanilla first.
