<commit_before># Working with React 16

If you are wanting to use enzyme with React 16, but don't already have React 16 and react-dom
installed, you should do so:

```bash
npm i --save react@16 react-dom@16
```

Further, enzyme requires the test utilities addon be installed:

```bash
npm i --save-dev react-test-renderer@16
```

Next, to get started with enzyme, you can simply install it with npm:

```bash
npm i --save-dev enzyme enzyme-react-adapter-16
```

And then you're ready to go!  In your test files you can simply `require` or `import` enzyme:

ES6:
```js
// setup file
import { configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';

configure({ adapter: new Adapter() });
```

```js
// test file
import { shallow, mount, render } from 'enzyme';

const wrapper = shallow(<Foo />);
```

ES5:
<!-- eslint no-var: 0 -->
```js
// setup file
var Enzyme = require('enzyme');
var Adapter = require('enzyme-adapter-react-16');
<commit_msg>Fix typo<commit_after># Working with React 16

If you are wanting to use enzyme with React 16, but don't already have React 16 and react-dom
installed, you should do so:

```bash
npm i --save react@16 react-dom@16
```

Further, enzyme requires the test utilities addon be installed:

```bash
npm i --save-dev react-test-renderer@16
```

Next, to get started with enzyme, you can simply install it with npm:

```bash
npm i --save-dev enzyme enzyme-adapter-react-16
```

And then you're ready to go!  In your test files you can simply `require` or `import` enzyme:

ES6:
```js
// setup file
import { configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';

configure({ adapter: new Adapter() });
```

```js
// test file
import { shallow, mount, render } from 'enzyme';

const wrapper = shallow(<Foo />);
```

ES5:
<!-- eslint no-var: 0 -->
```js
// setup file
var Enzyme = require('enzyme');
var Adapter = require('enzyme-adapter-react-16');

{'fraction_non_alphanumeric': 0.1415929203539823, 'fraction_numerical': 0.021863612701717855, 'mean_word_length': 4.031413612565445, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '3076233', 'n_tokens_mistral': 701, 'n_tokens_neox': 588, 'n_words': 251}