Convert view to react