generateExtendedJsProps method

JsMap generateExtendedJsProps(
  1. Map props
)
inherited

Returns a JavaScript version of the specified props, preprocessed for consumption by ReactJS and prepared for consumption by the react library internals.

Implementation

JsMap generateExtendedJsProps(Map props) {
  final propsForJs = JsBackedMap.from(props);

  if (isProvider) {
    propsForJs['value'] = ContextHelpers.jsifyNewContext(propsForJs['value']);
  }

  return propsForJs.jsObject;
}