diff options
author | Noah Loomans <noahloomans@gmail.com> | 2018-01-17 16:45:17 +0100 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2018-01-17 16:45:17 +0100 |
commit | 2232877ed5b3c0b60789940d2a367726ee8919c5 (patch) | |
tree | 5a64bdd7939fdaa2e1a09f1f22705616f473ebe3 /src/client/react/index.js | |
parent | 1b3f4ea79f947558573fbce5a2e2d0c2c5dd6a8d (diff) |
Add some basic styling
Diffstat (limited to 'src/client/react/index.js')
-rw-r--r-- | src/client/react/index.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/react/index.js b/src/client/react/index.js index a7006d4..e70b442 100644 --- a/src/client/react/index.js +++ b/src/client/react/index.js @@ -27,3 +27,7 @@ ReactDOM.render( </Provider>, document.getElementById('root'), ); + +// We only want to focus the input on page load. NOT on a in-javascript +// redirect. This is because that is when people usually want to start typing. +document.querySelector('.search input').focus(); |