Skip to content

Tag: javascript

How to convert object data to dropdown options?

I have created two dropdowns and I am getting the back-end data. Here, I wat to display the list of websites and stores as dropdown. I want option like: Answer Is that what you need? This pretty much is the same as your comment without the count. EDIT Here is a snippet that returns exactly the expected output

How to use a method on page load? VueX

I’m learning Vue with Vuex, I made a method called ‘llamarJson’this method get a json data. I don’t know how to use it when the page load. I tried many ways but I could not find a solution. I’m using Vue and Vuex. Please, could you help me? That’s the code html: That’…

Unit test with react hook fails

I don’t understand the result I get on this unit test. I expect the second check for textField.valid to be true and instead it returns false. Below is part of the component I’m testing against: … Below is the test I’m running: The output of console.log(wrapper.debug()) is the following…