Live data from Hacker News

React Makes You Sad?

github.com

91–100 of 211 posts

Re: React Makes You Sad?

#91
I think Meteor 1.3 + React is a really promising stack. If you are overwhelmed by all that comes with the default React stack (Webpack, Redux, React Router, etc...) then give Meteor 1.3 + React a try. It eliminates the need to write your own build system, makes writing a full stack JS app stupid simple, and overall makes you a lot happier.

Re: React Makes You Sad?

#92

nice 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…

[deleted]

Re: React Makes You Sad?

#93

nice 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…

What language is this? I'm using es6 and most of my components just look like this:

  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?

#94
post #42

can 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.

Are you referring to JSXTransformer? I thought that was deprecated?

Re: React Makes You Sad?

#95
There is an abundance of poorly written react apps popping up everywhere. Go to netflix and search for movies... the experience is terrible. The search box lags typing by a long shot. So much so its almost impossible to type in the full text of a movie name. I'm sure there is the correct way to do this (not making the field a controlled component?) but the problem being there on such a major site is a sign that its hard to do react correctly.

Re: React Makes You Sad?

#96
Everyone 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.

Re: React Makes You Sad?

#98
post #82

Earlier 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.

It is, but it's not written in javascript[1]. Flux came out when I was in the middle of developing it, and I spent hours reading about it, looking at it and playing with it, and it just didn't solve any problems that I had.

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.

1: https://github.com/jasom/cl-fccs

Re: React Makes You Sad?

#99
I wish I saw this a couple weeks earlier, before I gave up on React-Redux. Its documentation and Dan's talks work well for isolated samples, but I had no luck building a larger system that binds all the pieces together.

There 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?

#100
post #96

Everyone 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.

Why not Web components directly? (genuinely interested, soon I'll have to chose one way or another for a new project)
Post reply on HN