support React 0.12 & React 0.10/0.11 syntax and dom elements