@epam/ai-dial-modulify-ui
Advanced tools
Comparing version 0.19.0-rc.21 to 0.19.0-rc.22
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://epam-rail.com", | ||
"version": "0.19.0-rc.21", | ||
"version": "0.19.0-rc.22", | ||
"dependencies": {}, | ||
@@ -8,0 +8,0 @@ "type": "module", |
@@ -103,11 +103,12 @@ # Modulify Toolkit (UI) | ||
// Accessing the original component and binding a new implementation | ||
const RenderedComponent = Inversify.resolve(MyComponent.original) | ||
.bind((originalComponent) => (props) => ( | ||
// Accessing and using the original component within the factory | ||
<div style={{ border: '2px solid red' }}> | ||
<originalComponent {...props} /> | ||
</div> | ||
)) | ||
.render(); | ||
Inversify.resolve(MyComponent.original).bind((originalComponent) => (props) => ( | ||
// Accessing and using the original component within the factory | ||
<div style={{ border: '2px solid red' }}> | ||
<originalComponent {...props} /> | ||
</div> | ||
)); | ||
// Rendering the component with the bound implementation | ||
const RenderedComponent = Inversify.resolve(MyComponent.original).render(); | ||
// If you need to revert to the original component, unbind to the original | ||
@@ -114,0 +115,0 @@ Inversify.resolve(MyComponent.original).unbind(); |
Sorry, the diff of this file is too big to display
363538
9060
348