-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
more explicit usage docs #404
Conversation
peer dependencies, CSS imports, DOM4 existence. the DOM4 section feels pretty awkward but at least it's there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks pretty good
// using the namespace import | ||
const anotherSpinner = <Blueprint.Spinner/>; | ||
Blueprint relies on a handful of DOM Level 4 API methods: `el.query`, `el.queryAll`, and `el.closest()`. | ||
We depend on a [polyfill library called `dom4`][dom4] to ensure these methods are always available. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- "We depend" -> "
@blueprintjs/core
depends" - "are always available." -> "are available."
// use factories for React.createElement shorthand if you're not using JSX | ||
const myDatePicker = DatePickerFactory(); | ||
``` | ||
If you consume Blueprint through a module bundler such as Webpack then everything should work swimmingly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would just remove this paragraph and add a line to the previous paragraph: "This module is conditionally loaded if Blueprint is used in a browser environment."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Fixes #190, Fixes #201
Changes proposed in this pull request:
Reviewers should focus on: