NPS widget in react.js