Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,16 @@
"@wethegit/react-modal": major
---

## Breaking changes

- **Removed** `appendToBody` prop.
- The `appendToBody` prop has been removed. This prop was previously used to determine whether the modal should be appended to the body element.

## New Features
- The `appendToBody` prop has been removed. This prop was previously used to determine whether the modal should be appended to the body element.

- **Added** `renderTo` prop.
- Introduced the `renderTo` prop, which accepts an HTMLElement where the modal will be appended. This provides greater flexibilty, allowing users to specify any element to render the modal, including the body. This change enhances the customization options for the modal rendering.

## Fixes
- Introduced the `renderTo` prop, which accepts an HTMLElement where the modal will be appended. This provides greater flexibilty, allowing users to specify any element to render the modal, including the body. This change enhances the customization options for the modal rendering.

- Mark argument of hook as optional [#62](https://github.com/wethegit/react-modal/issues/62)

## Migration

- **Before**

```javascript
Expand Down
8 changes: 0 additions & 8 deletions .changeset/pre.json

This file was deleted.