// search-box.jsx
// is same as above but worse in terms of code
// App.js
//
// search-box.jsx
// is same as above but worse in terms of code
// App.js
//
You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.
// change to defaultValue=''
Function parameters are the names listed in the function's definition. Function arguments are the real values passed to the function. Parameters are initialized to the values of the arguments supplied.
If parameter is function (clickHandler in this case), pass argument as function => clickHandler();
// to avoid message error clickHandler, pass empty function as onClick in necessary components
https://blog.openreplay.com/3-ways-of-passing-multiple-parameters-to-the-onclick-handler-in-react
https://stackoverflow.com/questions/26069238/call-multiple-functions-onclick-reactjs
index.html
<div class="wrapper"> // content container
<header></header>
<main></main>
<footer></footer>
</div>
https://stackoverflow.com/questions/40515142/how-to-make-a-sticky-footer-in-react
https://stackoverflow.com/questions/71478639/footer-not-sticking-to-the-bottom-of-the-page-in-react
https://stackoverflow.com/questions/10099422/flushing-footer-to-bottom-of-the-page-twitter-bootstrap
https://stackoverflow.com/questions/55541850/how-to-make-footer-stay-at-bottom-of-the-page-with-flex-box
https://tailwindcss.com/docs/guides/create-react-app
https://daisyui.com/docs/use/
index.css // add these lines
tailwind.config.js // paste into
package.json // consider to install
postcss.config.js
//
git show filename // will show the log message and textual diff
git status -s // list modified files
git diff filename
git log --follow filename // list commits only
git log --follow -p -- filename // entire history of file modifications
git blame <filename> // show who changed file
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
https://www.loginradius.com/blog/engineering/react-router-basics/
App.js // do not toutch index.js
https://stackoverflow.com/questions/69832748/error-error-a-route-is-only-ever-to-be-used-as-the-child-of-routes-element