20200511, Julie Kwok
-
having
div
insideSwitch
triggers "React does not recognize thecomputedMatch
prop on a DOM element" warning. -
fetch
in a component will be called every time there is an update, do remember to put it into auseEffect
of something that does change often -
There should be a
key
on the mapped elements, meaning, if the mapping returns<><Something/></>
, there is a problem. To put akey
props on a fragment, use<React.Fragment key={something}><Something/></React.Fragment>
-
There probably no way to eliminate 404 errors in console.
-
Putting the input form in highest z-index seems to be a good way to make sure that suggestion list is always on top
-
To pass props with
Link
, see this
-
How not to change the width of div when the content is bolder in hover ? (ex, encyclopedia of trades project suggestion list)