This will be my collection of dev related notes which I can refer to quickly as needed.
If you come across these notes, I hope they help! Feel free to leave feedback or bug notes if you experience any.
- Create React App From Scratch — Create your react app without relying on a pre-packaged toolchain.
- State Management with Hooks —
useReducer
and dispatchers
- use HTTP/2
- split vendor packages into their own bundle
- Performance Tips for Background Video
- npm
- Verdaccio — A lightweight private npm proxy registry.
- Webpack — An in-depth guide aimed for beginners.
This section for notes that don't need their own files just yet.
To add the indeterminate property to the checkbox, we need to take advantage of the
ref
attribute:const { value, checked, indeterminate } = this.props return render( <input type="checkbox" value={value} checked={checked} ref={el => el && (el.indeterminate = indeterminate)} /> );Since the
ref
is run on each render, the indeterminate property is updated appropriately, and thus the checkbox appears as expected.David Walsh — React Indeterminate
# .npmrc
# Force custom registry for specifically scoped packages during `npm install`
@alfatrion:registry=http://localhost:4873/