Skip to content

Commit

Permalink
Run Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
trueadm committed Sep 26, 2018
1 parent 1c6fa33 commit 5d6d348
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
6 changes: 5 additions & 1 deletion packages/react-dom/src/client/ReactDOM.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,11 @@ ReactWork.prototype._onCommit = function(): void {
}
};

function ReactRoot(container: Container, isConcurrent: boolean, hydrate: boolean) {
function ReactRoot(
container: Container,
isConcurrent: boolean,
hydrate: boolean,
) {
const root = DOMRenderer.createContainer(container, isConcurrent, hydrate);
this._internalRoot = root;
}
Expand Down
10 changes: 8 additions & 2 deletions packages/react-noop-renderer/src/createReactNoop.js
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,10 @@ function createReactNoop(reconciler: Function, useMutation: boolean) {
renderLegacySyncRoot(element: React$Element<any>, callback: ?Function) {
const rootID = DEFAULT_ROOT_ID;
const isConcurrent = false;
const container = ReactNoop.getOrCreateRootContainer(rootID, isConcurrent);
const container = ReactNoop.getOrCreateRootContainer(
rootID,
isConcurrent,
);
const root = roots.get(container.rootID);
NoopRenderer.updateContainer(element, root, null, callback);
},
Expand All @@ -490,7 +493,10 @@ function createReactNoop(reconciler: Function, useMutation: boolean) {
callback: ?Function,
) {
const isConcurrent = true;
const container = ReactNoop.getOrCreateRootContainer(rootID, isConcurrent);
const container = ReactNoop.getOrCreateRootContainer(
rootID,
isConcurrent,
);
const root = roots.get(container.rootID);
NoopRenderer.updateContainer(element, root, null, callback);
},
Expand Down

0 comments on commit 5d6d348

Please sign in to comment.