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
We can only access props passed to Region via RegionService. This involves working with providers and streams.
Somewhere in RootApp:
import { Region } from 'frint-react'; export default function SomeComponent() { return <Region name="sidebar" data={{}} />; }
And in Child App:
export default observe((app) => { return app.get('region').getData$(); })(MyChildAppComponent);
We can stay more close to the React-land, if we can also support render props pattern with Region component.
Somewhere in Root app:
import { Region } from 'frint-react'; export default function SomeComponent() { return ( <Region name="sidebar" data={{}}>{ (list, props) => list.map({ Component } => ( <Component data={props.data} /> )) }</Region> ); }
list
Component
props
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently
We can only access props passed to Region via RegionService. This involves working with providers and streams.
Somewhere in RootApp:
And in Child App:
Proposal
We can stay more close to the React-land, if we can also support render props pattern with Region component.
Somewhere in Root app:
list
: has all the Child Apps' componentsComponent
: individual root component of Child Appsprops
: props passed to Region componentThe text was updated successfully, but these errors were encountered: