jorgebucaran / classcat

Build a class attribute string quickly
MIT License
906 stars 22 forks source link

Fix CodePen Example #12

Closed colshacol closed 6 years ago

colshacol commented 6 years ago

https://codepen.io/colshacol/pen/MOzMOQ?editors=0010

I went to check out the CodePen example and found that it did not work.

screenshot 2017-11-30 09 55 38

I referred to the hyperapp docs and found that app.view needed to be composed of two functions rather than one function that takes two arguments.

Then I got a similar error with actions.toggle and found in the docs that actions should be structured the same way as the view.

I made these changes on a "fork" for you to review and update your existing CodePen example.


... And, for compliance and to make myself feel like a real contributor...

Expected:

When going to check out the CodePen example, the example works.

Actual:

When going to check out the CodePen example, the example not works.

Steps to Reproduce:

Go checkout the CodePen example.

jorgebucaran commented 6 years ago

Fixed! Thanks 🙏