Browse Source

Improve usage example

pull/8/head
Luke Childs 7 years ago
parent
commit
74ed636d95
  1. 4
      README.md

4
README.md

@ -36,8 +36,10 @@ class Hi extends React.Component {
} }
const elem = ReactJSDOM.render(<Hi person="mum"/>); const elem = ReactJSDOM.render(<Hi person="mum"/>);
// I mounted! // console: 'I mounted!'
elem.constructor.name
// 'HTMLDivElement'
elem.nodeName; elem.nodeName;
// 'DIV'); // 'DIV');
elem.querySelector('span:last-child').textContent; elem.querySelector('span:last-child').textContent;

Loading…
Cancel
Save