Tag: React

  • 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…

  • My initial experience with React and Flux

    For the past month I’ve been into React and Flux. React is a JavaScript library for building user interfaces from folks of Facebook and Instagram. The reason I like React is because it is simple to learn – you learn a great deal about it just by following official tutorial. Another thing I like about…