<commit_before>package japgolly.scalajs.react

import japgolly.scalajs.react.internal.{JsRepr, NotAllowed}
import japgolly.scalajs.react.vdom.{VdomElement, VdomNode}
import japgolly.scalajs.react.{raw => Raw}

object React {
  def raw = Raw.React

  /** Create a new context.
    *
    * If you'd like to retain type information about the JS type used under-the-hood with React,
    * use `React.Context(defaultValue)` instead.
    *
    * @since 1.3.0 / React 16.3.0
    */
  def createContext[A](defaultValue: A)(implicit jsRepr: JsRepr[A]): Context[A] =
    Context(defaultValue)(jsRepr)

  @deprecated("Use Ref. For details see https://github.com/japgolly/scalajs-react/blob/master/doc/REFS.md", "1.3.0 / React 16.3.0")
  def createRef(notAllowed: NotAllowed) = NotAllowed.body

  type Context[A] = feature.Context[A]
  val Context     = feature.Context

  val Fragment    = feature.ReactFragment

  /** Ref forwarding is an opt-in feature that lets some components take a ref they receive,
    * and pass it further down (in other words, "forward" it) to a child.<commit_msg>Expose React.version<commit_after>package japgolly.scalajs.react

import japgolly.scalajs.react.internal.{JsRepr, NotAllowed}
import japgolly.scalajs.react.vdom.{VdomElement, VdomNode}
import japgolly.scalajs.react.{raw => Raw}

object React {
  @inline def raw = Raw.React

  @inline def version: String =
    raw.version

  /** Create a new context.
    *
    * If you'd like to retain type information about the JS type used under-the-hood with React,
    * use `React.Context(defaultValue)` instead.
    *
    * @since 1.3.0 / React 16.3.0
    */
  def createContext[A](defaultValue: A)(implicit jsRepr: JsRepr[A]): Context[A] =
    Context(defaultValue)(jsRepr)

  @deprecated("Use Ref. For details see https://github.com/japgolly/scalajs-react/blob/master/doc/REFS.md", "1.3.0 / React 16.3.0")
  def createRef(notAllowed: NotAllowed) = NotAllowed.body

  type Context[A] = feature.Context[A]
  val Context     = feature.Context

  val Fragment    = feature.ReactFragment

  /** Ref forwarding is an opt-in feature that lets some components take a ref they receive,
    * and pass it further down (in other words, "forward" it) to a child.
{'fraction_non_alphanumeric': 0.11690647482014388, 'fraction_numerical': 0.012589928057553957, 'mean_word_length': 3.6354166666666665, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6983046', 'n_tokens_mistral': 761, 'n_tokens_neox': 755, 'n_words': 204}