Skip to content

Commit

Permalink
fix(withScriptsJs): Fix comment clarity
Browse files Browse the repository at this point in the history
* Updates the comment to indicate that this dependency is not to used for server-side rendered components

- Original author: @TryingToImprove
- Original commits: 4aeefad, ded6de4
  • Loading branch information
TryingToImprove authored and oshalygin committed Aug 8, 2017
1 parent e463df3 commit 74b0ba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/async/withScriptjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default function withScriptjs(WrappedComponent) {
this.setState({
loadingState: LOADING_STATE_BEGIN,
});
// Don't load scriptjs as dependency since we want this module be used on server side.
// Don't load scriptjs as a dependency since we do not want this module be used on server side.
// eslint-disable-next-line global-require
const scriptjs = require(`scriptjs`);
const {
Expand Down

0 comments on commit 74b0ba3

Please sign in to comment.