Kind of helper for React.js