mock interface on react.js