Skip to content

Commit 723e57f

Browse files
Bump stuff (#10)
1 parent bb89e94 commit 723e57f

File tree

4 files changed

+10
-21
lines changed

4 files changed

+10
-21
lines changed

react/.eslintrc

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
{
2-
"ecmaFeatures": {
3-
"modules": true
4-
},
5-
"env": {
6-
"es6": true
7-
}
8-
}
2+
"extends": "react-app"
3+
}

react/package.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,11 @@
2626
"bugs": {
2727
"url": "https://github.com/1stdibs/front-end-quiz/issues"
2828
},
29-
"homepage": "https://github.com/1stdibs/front-end-quiz#readme",
3029
"dependencies": {
3130
"express": "^4.16.3",
32-
"react": "^16.8.6",
33-
"react-dom": "^16.8.6",
34-
"react-scripts": "^3.1.1"
31+
"react": "^16.13.1",
32+
"react-dom": "^16.13.1",
33+
"react-scripts": "^3.4.3"
3534
},
3635
"devDependencies": {
3736
"nodemon": "^1.17.5"

react/readme.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ Add item favoriting:
3939

4040
### Other Notes:
4141
- Initial App setup is done with [Create React App](https://github.com/facebookincubator/create-react-app)
42-
- You can use any [Flux](https://facebook.github.io/flux/) framework if needed, Redux is preferable, but not a must
43-
- [React Hooks](https://reactjs.org/docs/hooks-intro.html) are more than welcome
44-
- You can use [ES6 features](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#supported-language-features-and-polyfills)
42+
- We prefer React code written with function components and [React Hooks](https://reactjs.org/docs/hooks-intro.html)
43+
- You can use ES2020 language features
4544
- You can change Create React App or Express.js configs/setup as you like
4645
- You can use any framework for CSS or just write your own styles. Don't need to totally match given examples

react/src/App.js

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
import React, { Component } from 'react';
1+
import React from 'react';
22
import './App.css';
33

4-
class App extends Component {
5-
render() {
6-
return (
7-
<h1 className="App-welcome">Welcome!</h1>
8-
);
9-
}
4+
function App() {
5+
return <h1 className='App-welcome'>Welcome!</h1>;
106
}
117

128
export default App;

0 commit comments

Comments
 (0)