Just like React components on the BoS You can easily reference other components. however a referenced widget may break if
- it is reliant on packages and dependencies from a different gateway
- You do not have the necessary props passed to the widget — plz considering rendering error messages inside the referenced widget to allow for non breaking displays when no props is passed
<aside>
👀 but that’s not what this subpage is about
</aside>
So here is a crazzy idea, instead of deploying a dApp, run a custom bOS gateway and make every piece of your dApp a component. Scrap all the social elements, and make your homepage your dApp homepage.
Running A Gateway
Why be the first one to do something so revolutionary????
- Crowdsource NEAR (the top 5 blockchain developer communities) talent engine building new widgets everyday
- Further decentralize the NEAR network
- Have others view & code review your widgets
- Be a trend setter
- Get a high-five from root.near.social
- Get a Blunt from BluntDAO
- Get a get out of jail free card from the SEC
Customizing the Homepage
It all goes down in the NEAR Social View Repo’s App.js
https://github.com/NearSocial/viewer/blob/master/src/App.js