17 Matching Annotations
  1. Jan 2019
  2. Oct 2018
    1.   render () {    return (      <ProviderA>        <ProviderB>          <div className='stuff'>some other content</div>          <div className='nested element'>            <MyComponent c="3" />          </div>        </ProviderB>      </ProviderA>    )
      1. There is child context which contains data to be defined in the context

      2. Now there is context object in React, which is created using combination of React.createContext and the childContextData as follows

      const contextA = React.createContext(childContext)

      1. Now third step is to create provider for the context created above, it is called contextProvider and it is created as follows

      it is actually a wrapper component, it just wraps the code or component inside the Context.Provider Component and passes the childContext as value prop to the ContextProvider Component

      so ContextProvider is actually a component created by wrapping the props.children inside ({children}) => ( <ContextA.Provider value={childContexA}> {children} </ContextA.Provider> )

      My Compononent is the component where we want to access the properties defined in context

      we can access those properties defined in context inside the MYComponent as props if we wrap MyComponent inside withContextAsProvider(ContextA, ContextB, MyComponent)

      &&& &&&& &&&& wrap the usage of MyComponent inside the ContextProvider created above

      as shown in example

  3. Mar 2018
    1. \b\w+(?<!s)\b.

      this regex does not work with \b, remove \b from regex in order to make it work with Python 3.6

  4. Jan 2018
  5. Sep 2017
    1. It adds metadata to the class that makes the directive's highlightColor property available for binding.

      so basically @Input decorator makes the property available for binding, in this case, for property highlightColor

  6. Jul 2017
  7. developer.mozilla.org developer.mozilla.org
    1. This page http://bfo.com/products/report/docs/tags/tags/link.html says that we can link font files in html using link attribute,

      I want to ask this to mdn community if it is possible, for the case when @font-face is not supported

  8. Jun 2017
    1. can someone write the abstract of this post. For me its not clear what actually does the author want to say

  9. May 2017
    1. some abstract point from this article

      1. mobile application also access servers on network and some of them do not properly check certificates and thus man in middle attack can succeed
      2. when man in middle relays certificate on https, then the browsers like chrome and firefox gives us warning that connection is untrusted
    1. sent by the WebSocket object

      whom does the web socket, send message to?

    2. interactive communication

      Wow, websocket makes it possible for browser to chat with server

    1. Service workers only run over HTTPS, for security reasons.

      what is that security reason, can someone say so that a layman can understand

    2. It is designed to be fully async; as a consequence, APIs such as synchronous XHR and localStorage can't be used inside a service worker.

      It is designed to be fully async; as a consequence, APIs such as synchronous XHR and localStorage can't be used inside a service worker.<br> can someone put light on above sentence, what is that special thing in async that localstorage cannot be used

    3. in a worker context: it therefore has no DOM

      if it would run in window context, it would have access to DOM

    4. worker

      By worker, you simply understand a feature in browser, that keeps look on events

    1. as our Offline page shows

      I wasted time trying to understand this offline page, please do not waste time to understand its architecture just focus on current service worker page