We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If you use rt-props with style or class the function mergeProps is embedded in the render function.
rt-props
style
class
mergeProps
The problem is that if you have lot of components, it is embedded everytime despite being the same exact function.
Can we have a way to make it global or something similar, so that it is specified once for all?
A possible solution could be having a command line switch to tell that mergeProps is passed with require(). Or perhaps we could pass it in _.
require()
_
This is the function I'm talking about:
function mergeProps(inline, external) { var res = _.assign({}, inline, external); if (inline.hasOwnProperty('style')) { res.style = _.defaults(res.style, inline.style); } if (inline.hasOwnProperty('className') && external.hasOwnProperty('className')) { res.className = external.className + ' ' + inline.className; } return res; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If you use
rt-props
withstyle
orclass
the functionmergeProps
is embedded in the render function.The problem is that if you have lot of components, it is embedded everytime despite being the same exact function.
Can we have a way to make it global or something similar, so that it is specified once for all?
A possible solution could be having a command line switch to tell that
mergeProps
is passed withrequire()
. Or perhaps we could pass it in_
.This is the function I'm talking about:
The text was updated successfully, but these errors were encountered: