Check if the obj accessed or function called, that used this operator, is undefined
or null
. The expression short circuits and evaluates to undefined
instead of throwing an error.
obj.val?.prop
obj.val?.[expresions]
obj.func?.(args)
<i class="fa fa-home fa-fw"></i>
https://fontawesome.com/v4/examples/
Set icons at a fixed width
The initial render is the 1st time that the component tree is rendered to the DOM. It happens when the application first loads, or when the root component is first rendered. (also known as "mounting" the components)
Re-renders, on the other hand, happen when the components's state or props change, and the component needs to be updated in the DOM to reflect these changes.
React uses a virtual DOM to optimize the process of updating the actual DOM, so that only the necessary changes are made.
insertOne()
insertMany()
NOTE: if Collection does not exist yet. The field specifed inside above will be taken as blueprint to construct a new collection (if _id not specified then it is auto added). After then it could continue to resolve the insert operation at start.
db.people.insertOne( {
updateOne()
updateMany()
replaceOne() // replace at most, 1 single document that match specified filter, regardless of other matched documents
// replace diff from update, that it overrides the whole document, not just 1 or 2 field.
findAndModify()
findOneAndUpdate()
findOneAndReplace()