3
3 Comments

React Pluggable: Thinking Features over Components

Give a shot, try out React Pluggable (https://react-pluggable.github.io/).

An open-source intuitive plugin system for Javascript and React apps which focusses on the abstraction of the UI and helps you to think of the app as a set of features instead of a set of components.

Read a detailed article about the same here: https://stories.geekyants.com/react-pluggable-thinking-features-over-components-cki0dqjlx000hfbs19bppgncu

  1. 1

    A detailed tutorial article on React Pluggable is available now.
    Article Link - https://stories.geekyants.com/react-pluggable-a-quick-guide.

  2. 1

    Here is a Todo (https://react-pluggable.github.io/docs/todo-example) example. We don't have a more full-featured example as of now. We have used it in our internal projects. We'll see if we can include some of it in the docs.
    A plugin can provide any functionality through addFunction (https://react-pluggable.github.io/docs/pluginstore#addfunction) and communicate using events. It can also render a React component inside Renderer components provided through the RendererPlugin (https://react-pluggable.github.io/docs/rendererplugin) so there is no restriction on the usage of plugin as such. You can have build your whole app as a bunch of plugins or you can only have some features implemented using plugins.
    While we haven't provided any built-in functionality for server logic/endpoints, the best way would be to create a plugin which handles the integration with server API and use that in your app

  3. 1

    This is really interesting. Do you have any more full-featured plugins examples besides the alert one? To me it seems like plugins make the most sense for features that need to hook into a bunch of locations in your app. Also any thoughts on how this could add server logic/endpoints or is that out of scope?

  4. 1

    This comment was deleted 3 years ago.

Trending on Indie Hackers
Passed $7k 💵 in a month with my boring directory of job boards 39 comments Reaching $100k MRR Organically in 12 months 32 comments 87.7% of entrepreneurs struggle with at least one mental health issue 14 comments How to Secure #1 on Product Hunt: DO’s and DON'Ts / Experience from PitchBob – AI Pitch Deck Generator & Founders Co-Pilot 11 comments Competing with a substitute? 📌 Here are 4 ad examples you can use [from TOP to BOTTOM of funnel] 10 comments Are you wondering how to gain subscribers to a founder's X account from scratch? 9 comments