React Makes You Sad?
91–100 of 211 posts
Re: React Makes You Sad?
#92nice flowchart, i know the point of redux but man the boilerplate needed to create a component sucks: class _MyActualComponent extends React.Component { //my component's implementation goes here. } /** type for casting (so consumers know the props they are required to pass */ class IMyComponentVisibleType extends React.Component { }; /** instrument my component with redux */ export var MyComponent = ReactRedux.connec…
Re: React Makes You Sad?
#93nice flowchart, i know the point of redux but man the boilerplate needed to create a component sucks: class _MyActualComponent extends React.Component { //my component's implementation goes here. } /** type for casting (so consumers know the props they are required to pass */ class IMyComponentVisibleType extends React.Component { }; /** instrument my component with redux */ export var MyComponent = ReactRedux.connec…
export default ({ name }) => (
hello {name}
)
With Redux connect: const SomeComponent = ({ name }) => (
hello {name}
)
export default connect(s => ({
name: s.user.name
}))(SomeComponent)Re: React Makes You Sad?
#94can JSX be translated in the browser? that will make it even easier to avoid tooling and just use script tags for dev.
Yes, there is additional js loaded to do that. In the developer console you get a warning. It may be a tad slower.
Re: React Makes You Sad?
#95Re: React Makes You Sad?
#96Re: React Makes You Sad?
#97Re: React Makes You Sad?
#98Earlier quoted context omitted.
I have a react app that is almost 2 years old now and the only change I had to make was when they moved a function from the React to the ReactDOM namespace.
It wouldn't happen to be open source then would it? Perhaps I'm just React-ing wrong.
Note that the community's ideas of best-practices, and all of the ecosystem around react is changing at an absurd pace, but core react is fairly stable.
Re: React Makes You Sad?
#99There is no definitive documentation source (like msdn or angular docs) and every tutorial and guide came with its own massive set of boilerplates and libraries. These libraries did not have good documentation, either.
React-redux brings a fantastic way of thinking about the application, and I'm looking forward to seeing appropriate documentation.
Re: React Makes You Sad?
#100Everyone complaining about how React is just a trend is missing the point of React. It's not some revolutionary flash-in-the-pan technology based on a mystical black box, it's an aggregation of best practices that everyone (including yourself) has been clamoring to have implemented for years. Web components? Check. Object.Observer? Check. Virtual DOM? Check.