title: Is it ok to use a wrapper component to pass props in React?
body: <pre><code>export function injectProps() {
      const injects = {store: new Store()}; // some store
  
      return function (Component) {
          return class Proxy extends React.Component {
              render() {
                  return React.createElement(Component, {
                      ...injects,
                      ...this.props,
                  });
              }
          };
      }
  }
  </code></pre>
  
  <p>Is it ok to use this instead of Redux or Context API with React?</p>
  
  <p><strong>Update:</strong> I think I missed to point out my expectation. I'm actually passing some service(http, localStorage) to childrens only when they asks for it. It's not only about the store as services don't have any state. But I also need to pass store through it.</p>
  
  <p><a href="https://pastebin.com/G3PgVxLn" rel="nofollow noreferrer">https://pastebin.com/G3PgVxLn</a></p>