Closed geolessel closed 4 years ago
@andrewmurph @lustrousgorilla Are these changes still ok for you two? Nothing really changed since I last asked in #42 but I thought I'd re-check in with you. Sorry this took so long!
@andrewmurph @lustrousgorilla Are these changes still ok for you two? Nothing really changed since I last asked in #42 but I thought I'd re-check in with you. Sorry this took so long!
Looks fantastic @geolessel ! Thank you 😄
This will allow the user to more precisely configure the rendered HTML output from
react_component/3
.html_element
By default,
react_component
renders the react component inside adiv
container. If you pass a value tohtml_element
as an option toreact_component/3
, it will render the component inside the specified HTML element. For example, to render the component in aspan
instead of adiv
, you can runOther options
Anything else passed into
react_component/3
will be passed through directly to the component's HTML output. This could be a class name, styles, or anything else.This takes care of the request in #42.