From 2ef127b102631b014ac45f2561fa973f109e7b59 Mon Sep 17 00:00:00 2001 From: Marcelo Jorge Vieira Date: Tue, 23 Oct 2018 23:39:47 -0300 Subject: [PATCH] react-dom: Updated README.md Replaced 'var' with 'const' --- packages/react-dom/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/react-dom/README.md b/packages/react-dom/README.md index 2652912f9992f..ef75282153e5f 100644 --- a/packages/react-dom/README.md +++ b/packages/react-dom/README.md @@ -13,8 +13,8 @@ npm install react react-dom ### In the browser ```js -var React = require('react'); -var ReactDOM = require('react-dom'); +const React = require('react'); +const ReactDOM = require('react-dom'); class MyComponent extends React.Component { render() { @@ -28,8 +28,8 @@ ReactDOM.render(, node); ### On the server ```js -var React = require('react'); -var ReactDOMServer = require('react-dom/server'); +const React = require('react'); +const ReactDOMServer = require('react-dom/server'); class MyComponent extends React.Component { render() {