react-redux
hospitalrun-frontend
react-redux | hospitalrun-frontend | |
---|---|---|
3 | 7 | |
21,446 | 6,708 | |
- | - | |
8.7 | 2.2 | |
over 2 years ago | over 1 year ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
react-redux
-
Animated page transitions in react
I'm using react/react-redux/react-router/react-router-redux.
-
Decoupling React Components and Redux Connect
Reactjs As seen here I am trying to decouple my app's components as much as I can and make them not aware of any storage or action creator. The goal is to have them to manage their own state and call functions to emit a change. I have been told that you do this using props. Considering // Menu.jsximport React from 'react'import { className } from './menu.scss'import Search from 'components/search'class Menu extends React.Component { render () { return ( Home foo bar ) }} And // Search.jsximport React from 'react'import { className } from './search.scss'class Search extends React.Component { render () { let { searchTerm, onSearch } = this.props return ( {searchTerm} onSearch(e.target.value)} value={searchTerm} /> ) }}Search.propTypes = { searchTerm: React.PropTypes.string, onSearch: React.PropTypes.function}export default Search And reading here I see a smart use of Provider and connect and my implementation would look something like this: import { bindActionCreators, connect } from 'redux'import actions from 'actions'function mapStateToProps (state) { return { searchTerm: state.searchTerm }}function mapDispatchToProps (dispatch) { return bindActionCreators({ dispatchSearchAction: actions.search }, dispatch)}export default connect(mapStateToProps, mapDispatchToProps)(Search) Assuming I have a store handling searchTerm as part of the global state. Problem is, where does this code belongs to? If I put it in Search.jsx I will couple actions with the component and more important to redux. Am I supposed to have two different versions of my component, one decoupled and one connect()ed and have to use it? If yes what would my files tree look like? One file per component or a like a make-all-connected.js ? Answer link : https://codehunter.cc/a/reactjs/decoupling-react-components-and-redux-connect
-
What's the '@' (at symbol) in the Redux @connect decorator?
It is in fact a part of react-redux which is used to connects a React component to a Redux store.
hospitalrun-frontend
- Enterprise level open source react apps?
- How to run this react project locally
-
Currently in need of books or repo recommendations that covers intermediate-advanced concepts in react
HospitalRun - a large library filled with application code (which in my opinion, is written differently than UI library code)
- An Example of a large project in React
-
Looking for React projects with good testing (Jest+=React testing library)
Checkout HospitalRun
- What are some up-to-date project tutorial with some of the cleanest and best code for TDD?
-
Suggested sample project to see what a well-architected react project looks like?
There was a recent thread on this with some good suggestions. I ended up checking out the HospitalRun React front end with TypeScript and it was nicely written.
What are some alternatives?
rematch - The Redux Framework
spectrum - Simple, powerful online communities.
react-redux-typescript-guide - The complete guide to static typing in "React & Redux" apps using TypeScript
bulletproof-react - 🛡️ ⚛️ A simple, scalable, and powerful architecture for building production ready React applications.
frontend-bootcamp - Frontend Workshop from HTML/CSS/JS to TypeScript/React/Redux
react-tree - Hierarchical tree component for React in Typescript
oni - Oni: Modern Modal Editing - powered by Neovim
jira_clone - A simplified Jira clone built with React/Babel (Client), and Node/TypeScript (API). Auto formatted with Prettier, tested with Cypress.
react-starter-kit - The web's most popular Jamstack front-end template (boilerplate) for building web applications with React
simorgh - The BBC's Open Source Web Application. Contributions welcome! Used on some of our biggest websites, e.g.
react-redux - Official React bindings for Redux
ftw-daily - Sharetribe Flex Template for Web