Skip to content

Commit db72177

Browse files
authored
Add React 18 support (#115)
1 parent a0abea2 commit db72177

File tree

9 files changed

+675
-687
lines changed

9 files changed

+675
-687
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/shpota/goxygen
22

3-
go 1.18
3+
go 1.19

static/generated.go

+340-346
Large diffs are not rendered by default.

templates/mongo.server/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module project-name
22

3-
go 1.18
3+
go 1.19
44

55
require go.mongodb.org/mongo-driver v1.9.0
66

templates/mysql.server/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module project-name
22

3-
go 1.18
3+
go 1.19
44

55
require github.com/go-sql-driver/mysql v1.6.0

templates/postgres.server/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module project-name
22

3-
go 1.18
3+
go 1.19
44

55
require github.com/lib/pq v1.10.4

templates/react.webapp/package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6-
"axios": "~0.21.1",
7-
"react": "~17.0.2",
8-
"react-dom": "~17.0.2",
9-
"react-scripts": "~4.0.3"
6+
"axios": "~1.2.1",
7+
"react": "~18.2.0",
8+
"react-dom": "~18.2.0",
9+
"react-scripts": "~5.0.1"
1010
},
1111
"devDependencies": {
12-
"@testing-library/jest-dom": "~5.11.10",
13-
"@testing-library/react": "~11.2.6",
14-
"@testing-library/user-event": "~13.1.5"
12+
"@testing-library/jest-dom": "~5.16.5",
13+
"@testing-library/react": "~13.4.0",
14+
"@testing-library/user-event": "~14.4.3"
1515
},
1616
"scripts": {
1717
"start": "react-scripts start",

templates/react.webapp/src/App.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import React from 'react';
22
import './App.css';
3-
import logo from './logo.svg';
3+
import Logo from './Logo';
44
import {Tech} from "./tech/Tech";
55

66
export function App() {
77
return (
88
<div className="app">
99
<h2 className="title">project-name</h2>
10-
<div className="logo"><img src={logo} height="150px" alt="logo"/></div>
10+
<div className="logo"><Logo/></div>
1111
<div>
1212
This project is generated with <b><a
1313
href="https://github.com/shpota/goxygen">goxygen</a></b>.

templates/react.webapp/src/Logo.js

+322
Large diffs are not rendered by default.

templates/react.webapp/src/logo.svg

-328
This file was deleted.

0 commit comments

Comments
 (0)