File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1111 * or implied. See the License for the specific language governing permissions and limitations
1212 * under the License.
1313 */
14-
14+ /* eslint-disable no-var,vars-on-top */
1515// eslint-disable-next-line prefer-destructuring
16- const createContext = require ( 'react' ) . createContext ;
16+ var createContext = require ( 'react' ) . createContext ;
1717
18- const contexts = { } ;
18+ var contexts = { } ;
1919
2020module . exports = function createSharedReactContext ( defaultValue , key ) {
2121 if ( ! key ) {
@@ -26,7 +26,7 @@ module.exports = function createSharedReactContext(defaultValue, key) {
2626 if ( contexts [ key ] ) {
2727 return contexts [ key ] ;
2828 }
29- const context = createContext ( defaultValue ) ;
29+ var context = createContext ( defaultValue ) ;
3030 contexts [ key ] = context ;
3131 return context ;
3232} ;
You can’t perform that action at this time.
0 commit comments