diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 3973013166..0000000000
--- a/.travis.yml
+++ /dev/null
@@ -1,67 +0,0 @@
-language: node_js
-
-node_js:
-- 10
-- 12
-- 14
-
-sudo: false
-
-env:
- matrix:
- - TEST_TYPE=build
- - TEST_TYPE=test
- - TEST_TYPE=flow
- - TEST_TYPE=lint
- - TEST_TYPE=build_website
- global:
- - CXX=g++-4.8
- # $GITHUB_TOKEN
- - secure: "JOaZao55VK0+3Uf2AoPo5qOXBKEUnqwbwfHsPq5746+7zzr4WpSOleYWLCOm3cl/pMuw7MEa8cQ8MzBktvUyuqbYEl6tslqNE+IINXPlrLbZJGbz5US/doNwv6nWk679op4XJin8ZjJy3AsoP8+qRJCzGRepjiNQTT4Yq72lWEEv1ea5RN5CQNobTBJfyJ47+XK+A8Zqea8mV152LO2h0/q96Ny1YQpcG/uQj8KGjd/Gi9OEifheKYZV5YzamWF3zouchVC3uJZTfAs7zOuiz/23ej2HwUwCfE7ZlcM0EvEJ4oEKPhO7ZUt0tLw3O/xIzhIJMngyfWee+jp47SAPioyfW/mzX8S+2ma8dstFsgG7XbVpIwk4906tJFIcOLxrAocXqcSAOC+bS01rFbFzDVdh3czWF8iaSglZh6SWfgn0aAEoNSxZZJffVsxciAG13FlG0bz0MgNqZuNflwE2aN14k2rWYtgz/rpjnMQNE0p98JMuxxC4ezWQ7FwNe+k3OLqSfSiQffeOvLiOqdMQlH5KCLg/7ODtI6vvoxA3IQvYM8s0pZ7OY581aUhaBTZ/GiLGHz8fHuA4URUGNFixEyGvMr6Q1zhNvGmyHOW+vyzx4JOdM6VmW85+mY0M+qJ7TfoUJRM1A3WhvW43X2ghwou4YM35Xj2I7g4DRPEk+XE="
-
-
-addons:
- apt:
- sources:
- - ubuntu-toolchain-r-test
- packages:
- - g++-4.8
-
-before_install:
- - curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.3.2
- - export PATH=$HOME/.yarn/bin:$PATH
-cache:
- yarn: true
-
-before_script:
-# For additional debugging when Travis inevitably gets into a bad state.
-- yarn list --depth=0
-
-script:
-- |
- if [ "$TEST_TYPE" != build_website ]
- then
- yarn run $TEST_TYPE
- else
- set -e
- ./node_modules/.bin/gulp
- if [ "$TRAVIS_PULL_REQUEST" = false ] && [ "$TRAVIS_BRANCH" = master ]; then
- # Automatically publish the website
- git config --global user.name "Travis CI"
- git config --global user.email "travis@reactjs.org"
- echo "machine github.com login reactjs-bot password $GITHUB_TOKEN" > ~/.netrc
- cd website && yarn install && GIT_USER=reactjs-bot yarn deploy
- else
- # Make sure the website builds without error
- cd website && yarn install && yarn build
- fi
-
- fi
-
-notifications:
- email:
- recipients:
- - claudio.procida@gmail.com
- - mr.kev@me.com
- on_success: change # send a notification when the build status changes
- on_failure: always # always send a notification
diff --git a/README.md b/README.md
index 6d11981b36..674188d7a9 100644
--- a/README.md
+++ b/README.md
@@ -103,10 +103,9 @@ const styles = {
}
};
-ReactDOM.render(
- ,
- document.getElementById('container')
-);
+const container = document.getElementById('container');
+const root = ReactDOM.createRoot(container);
+root.render();
```
Since the release of React 16.8, you can use [Hooks](https://reactjs.org/docs/hooks-intro.html) as a way to work with `EditorState` without using a class.
diff --git a/examples/draft-0-10-0/color/color.html b/examples/draft-0-10-0/color/color.html
index e8d79778c5..a761687d61 100644
--- a/examples/draft-0-10-0/color/color.html
+++ b/examples/draft-0-10-0/color/color.html
@@ -212,10 +212,9 @@
},
};
- ReactDOM.render(
- ,
- document.getElementById('target')
- );
+ const container = document.getElementById('target');
+ const root = ReactDOM.createRoot(container);
+ root.render();