4 Matching Annotations
  1. Oct 2020
    1. By default all content inside template strings is escaped. This is great for strings, but not ideal if you want to insert HTML that's been returned from another function (for example: a markdown renderer). Use nanohtml/raw for to interpolate HTML directly.
  2. Feb 2020
  3. Nov 2019
    1. Since an uncontrolled component keeps the source of truth in the DOM, it is sometimes easier to integrate React and non-React code when using uncontrolled components.

      A good example for when to use uncontrolled components

  4. Aug 2019
    1. But what about useState? it used whenever we have some variable that whenever it changes, we want to re-render our component and show some new contents.