Skip to content

Commit

Permalink
Merge d00c03d into e6c6d0f
Browse files Browse the repository at this point in the history
  • Loading branch information
justin808 committed Apr 23, 2019
2 parents e6c6d0f + d00c03d commit b1996fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions CHANGELOG.md
Expand Up @@ -17,7 +17,7 @@ Changes since last non-beta release.
*Please add entries here for your pull requests that are not yet released.*
### [11.3.0] - 2019-04-20
#### Added
- html_options can now has option for 'tag' to add dynamically html element. like this : html_options{tag:'span'}.
- html_options can now has option for 'tag' to add dynamically html element. like this: `html_options: { tag: "span" }`.
[PR 1208](https://github.com/shakacode/react_on_rails/pull/1208) by [tahsin352](https://github.com/tahsin352).

### [11.2.2] - 2018-12-24
Expand All @@ -29,9 +29,9 @@ Changes since last non-beta release.
- If using **React on Rails Pro**, upgrade react_on_rails_pro to a version >= 1.3.

#### Improved
- To support React v16, updated API for manually calling `ReactOnRails.render(name, props, domNodeId, hydrate)`. Added 3rd @param hydrate Pass truthy to update server rendered html. Default is falsey Any truthy values calls hydrate rather than render. (https://github.com/shakacode/react_on_rails/pull/1159) by [justin808](https://github.com/justin808) and [coopersamuel](https://github.com/coopersamuel).
- To support React v16, updated API for manually calling `ReactOnRails.render(name, props, domNodeId, hydrate)`. Added 3rd @param hydrate Pass truthy to update server rendered html. Default is falsey Any truthy values calls hydrate rather than render. [PR 1159](https://github.com/shakacode/react_on_rails/pull/1159) by [justin808](https://github.com/justin808) and [coopersamuel](https://github.com/coopersamuel).

- Enabled the use of webpack-dev-server with Server-side rendering. (https://github.com/shakacode/react_on_rails/pull/1173) by [justin808](https://github.com/justin808) and [judahmeek](https://github.com/judahmeek).
- Enabled the use of webpack-dev-server with Server-side rendering. [PR 1173](https://github.com/shakacode/react_on_rails/pull/1173) by [justin808](https://github.com/justin808) and [judahmeek](https://github.com/judahmeek).

#### Changed
- Changed the default for:
Expand Down Expand Up @@ -868,7 +868,8 @@ Best done with Object destructing:
##### Fixed
- Fix several generator related issues.

[Unreleased]: https://github.com/shakacode/react_on_rails/compare/11.2.2...master
[Unreleased]: https://github.com/shakacode/react_on_rails/compare/11.3.0...master
[11.3.0]: https://github.com/shakacode/react_on_rails/compare/11.2.2...11.3.0
[11.2.2]: https://github.com/shakacode/react_on_rails/compare/11.2.1...11.2.2
[11.2.1]: https://github.com/shakacode/react_on_rails/compare/11.1.8...11.2.1
[11.1.8]: https://github.com/shakacode/react_on_rails/compare/11.1.7...11.1.8
Expand Down
2 changes: 1 addition & 1 deletion docs/api/view-helpers-api.md
Expand Up @@ -28,7 +28,7 @@ Uncommonly used options:
- **props:** Ruby Hash which contains the properties to pass to the react object, or a JSON string. If you pass a string, we'll escape it for you.
- **prerender:** enable server-side rendering of a component. Set to false when debugging!
- **id:** Id for the div, will be used to attach the React component. This will get assigned automatically if you do not provide an id. Must be unique.
- **html_options:** Any other HTML options get placed on the added div for the component. For example, you can set a class (or inline style) on the outer div so that it behaves like a span, with the styling of `display:inline-block`.
- **html_options:** Any other HTML options get placed on the added div for the component. For example, you can set a class (or inline style) on the outer div so that it behaves like a span, with the styling of `display:inline-block`. You may also use an option of `tag: "span"` to replace the use of the default DIV tag to be a SPAN tag.
- **trace:** set to true to print additional debugging information in the browser. Defaults to true for development, off otherwise. Only on the **client side** will you will see the `railsContext` and your props.
- **random_dom_id:** True to automatically generate random dom ids when using multiple instances of the same React component on one Rails view.
- **options if prerender (server rendering) is true:**
Expand Down

0 comments on commit b1996fc

Please sign in to comment.