Skip to content

Tag: ecmascript-6

PostMessage Issues Using IFrame in JS

I have two buttons that work differently. The first one is when you click the reload button, it should reload the page. The second one is when you click it, it will show the alert on the page. I’m using postMessage because its inside the iframe. I’m not sure why the two buttons are not working but…

Show and Hide Condition in React

I have a simple problem here which I can’t figure out. I wanted to hide menus depending on the condition. For example if status contains at least one “Unlinked”. “All unlinked images” menu should appear. I did used .some and I wonder why it doesn’t return a boolean. Codesan…