My implementation of Facebook React's dom diff algorithm