Role based authorization in React

React.js