how to use require.js and react.js in frontend