UNPKG

yhtml5-test

Version:

A test framework for front-end projects

21 lines (16 loc) 477 B
/** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ 'use strict'; var ReactDOMComponentTree = require('./ReactDOMComponentTree'); var focusNode = require('fbjs/lib/focusNode'); var AutoFocusUtils = { focusDOMComponent: function () { focusNode(ReactDOMComponentTree.getNodeFromInstance(this)); } }; module.exports = AutoFocusUtils;