tchin-react-components
TRC
My reusable React components.
TRC uses a singleton app
to manage the core of the application, such as routes, translations and in my project's case, themes. It also manages the whole Redux store which you can provide its reducers on initialization.
On top of the app
singleton, TRC comes with a set of components I plan to use across all my React projects. Most of them were created during my website's development, so it is expected that they may not fit all designs. However, TRC also comes with a premade AppRouter (TRCRouter) which comes with basic functionality.
TRC also comes with a variety of hooks, including useConnect
hook which is used to access the Redux store. This hook was created before Redux announced their own set of hooks and may or may not change, because the pattern slightly differs from theirs.
Finally, TRC comes with all dev-dependencies listed as dependencies. This was decided so I can simply install this package without spending much time typing NPM commands to install more dependencies at the cost of a large bundle.
Disclaimer
Please note that this library is being developed for my personal use and should not be used directly in your projects. You can, however, use it as a reference if you're aiming towards the solution TRC is delivering to me. At ANY time, drastic changes could come to the library with no deprecation notice. Use with caution.
Installation
Use the package manager npm to install tchin-react-components.
npm i -S tchin-react-components
Usage
;;;; app.init; ReactDOM.render Provider store= TRCRouter / /Provider, document.getElementByIdAPP_ROOT;