fix regression on registerView, use stateless component
fix regression on registerView, use stateless component

FredericHeem/starhackit,FredericHeem/starhackit,FredericHeem/starhackit,FredericHeem/starhackit