dennisseidel / spa-starter

0 stars 0 forks source link

Fix the frontend bug #1

Closed dennisseidel closed 6 years ago

dennisseidel commented 6 years ago

on the frontend page (Home container) the following error occurs: index.js:2178 Warning: Each child in an array or iterator should have a unique "key" prop.

Check the render method of `Home`. See https://fb.me/react-warning-keys for more information.
    in newsbox (at Home.js:49)
    in Home (created by Route)
    in Route (at App.js:70)
    in Switch (at App.js:69)
    in div (at App.js:67)
    in App (created by Route)
    in Route (created by withRouter(App))
    in withRouter(App) (at index.js:13)
    in Router (created by BrowserRouter)
    in BrowserRouter (at index.js:12)
__stack_frame_overlay_proxy_console__ @ index.js:2178
printWarning @ warning.js:33
warning @ warning.js:57
validateExplicitKey @ react.development.js:1108
validateChildKeys @ react.development.js:1130
createElementWithValidation @ react.development.js:1261
render @ Home.js:47
finishClassComponent @ react-dom.development.js:7873
updateClassComponent @ react-dom.development.js:7850
beginWork @ react-dom.development.js:8225
performUnitOfWork @ react-dom.development.js:10224
workLoop @ react-dom.development.js:10288
callCallback @ react-dom.development.js:542
invokeGuardedCallbackDev @ react-dom.development.js:581
invokeGuardedCallback @ react-dom.development.js:438
renderRoot @ react-dom.development.js:10366
performWorkOnRoot @ react-dom.development.js:11014
performWork @ react-dom.development.js:10967
requestWork @ react-dom.development.js:10878
scheduleWorkImpl @ react-dom.development.js:10732
scheduleWork @ react-dom.development.js:10689
scheduleTopLevelUpdate @ react-dom.development.js:11193
updateContainer @ react-dom.development.js:11231
(anonymous) @ react-dom.development.js:15226
unbatchedUpdates @ react-dom.development.js:11102
renderSubtreeIntoContainer @ react-dom.development.js:15225
render @ react-dom.development.js:15290
./src/index.js @ index.js:11
__webpack_require__ @ bootstrap aba46735fae72e146174:678
fn @ bootstrap aba46735fae72e146174:88
0 @ Auth.js:64
__webpack_require__ @ bootstrap aba46735fae72e146174:678
./node_modules/ansi-regex/index.js.module.exports @ bootstrap aba46735fae72e146174:724
(anonymous) @ bootstrap aba46735fae72e146174:724
index.js:2178 Warning: Invalid DOM property `class`. Did you mean `className`?
    in h1 (at Home.js:44)
    in section (at Home.js:43)
    in div (at Home.js:41)
    in Home (created by Route)
    in Route (at App.js:70)
    in Switch (at App.js:69)
    in div (at App.js:67)
    in App (created by Route)
    in Route (created by withRouter(App))
    in withRouter(App) (at index.js:13)
    in Router (created by BrowserRouter)
    in BrowserRouter (at index.js:12)