transform xtpl to react tpl