compare_view better use of react