react-rethinkdb icon indicating copy to clipboard operation
react-rethinkdb copied to clipboard

Props & State vs. this.data

Open khoerling opened this issue 10 years ago • 1 comments

Is there a reason why props & state aren't used for the QueryResults? It seems to defeat the purpose of React's optimized render.

khoerling avatar Jan 29 '16 03:01 khoerling

I was mimicking the API in ParseReact when I went with this.data. But I agree it doesn't feel the cleanest.

It might be cleaner with higher order components like discussed in https://github.com/mikemintz/react-rethinkdb/issues/8 but that has its own downsides. I'm definitely open to any suggestions for a more appropriate model.

mikemintz avatar Jan 29 '16 08:01 mikemintz