Ts syntaxerror unexpected token export react. So to use the ?? operator you need to update node in repl.