add React JS snippet