Tag: components

  • Organizing jQuery code with Flight.js

    If you use jQuery for your projects and don’t organize code in some way, you should definitely check out Flight.js, a web framework created and used by Twitter. Flight.js lets you organize jQuery code in components (basically a self contained HTML markup where standard DOM events are handled by user-defined callbacks). These components communicate with…

  • Testing React components

    There are two aspect of testing React components: testing their structure (desired markup is displayed) and behaviour (e.g. when clicking on a button this function will be called or something different will appear in component’s markup). Testing component structure is best done with shallow rendering since it renders only provided component and not its potential…