-
-
Notifications
You must be signed in to change notification settings - Fork 965
Upgrade guide from version 2.x to 3.x
Wojciech Maj edited this page Jan 24, 2018
·
3 revisions
To ensure testability and easier styling, some class names were changed. If you were using custom CSS styling, you'd need to adjust for that.
| Old className | New className |
|---|---|
| ReactPDF__Document | react-pdf__document |
| ReactPDF__Page | react-pdf__Page |
| ReactPDF__Page__annotations | react-pdf__Page__annotations |
| ReactPDF__Page__canvas | react-pdf__Page__canvas |
| ReactPDF__Page__svg | react-pdf__Page__svg |
| ReactPDF__Page__textContent | react-pdf__Page__textContent |
| ReactPDF__Outline | react-pdf__Outline |
| ReactPDF__Loader | react-pdf__message, react-pdf__message--loading |
| ReactPDF__Error | react-pdf__message, react-pdf__message--error |
| ReactPDF__NoData | react-pdf__message, react-pdf__message--no-data |
Document and Page components are now always rendering their containers. This means that messages (loading, error, no data) will now be rendered inside their component wrappers, not instead of them.