Gatsby reverted support for new JSX transform (which is from React 17). If you need this, you should setup babel (and maybe typescript)
babel.config.js
module.exports = function(api) {
api.cache(true)
const presets = [
[
"babel-preset-gatsby",