export default new class in es6

Solutions on MaxInterview for export default new class in es6 by the best coders in the world

showing results for - "export default new class in es6"
Giorgia
14 Sep 2016
1class AuthController {
2  sendOtp(req, res) {
3    res.send('otp send')
4  }
5}
6
7export default new AuthController()
Simone
11 May 2020
1export default class ClassName{...}