select icon indicating copy to clipboard operation
select copied to clipboard

Is there any plan to convert all code to use ES6 standard?

Open codTango opened this issue 9 years ago • 5 comments

I'm just trying to add a little feature to the select, but what slows me down is the old way of react and all the bind() functions. I can understand that it's a pain to convert all source code to ES6 standard, but I'm still wondering if there's a plan to do so?

Also, since this project is on react@15+ now, should we remove the React.createClass() and mixin? As they're already deprecated.

codTango avatar Mar 08 '17 20:03 codTango

@yiminghe so I'm thinking to sweep all the ES5 or old react to modern style, I probably will make a PR, is that OK?

codTango avatar Mar 09 '17 19:03 codTango

@codTango PR is welcome

paranoidjk avatar Mar 10 '17 02:03 paranoidjk

it depends on mixin, if you can find a way to remove mixin properly, welcome pr

yiminghe avatar Mar 10 '17 08:03 yiminghe

Part 1: https://github.com/react-component/select/pull/197

damiangreen avatar Jun 01 '17 20:06 damiangreen

With regard to the mixin, I've taken a look at it, and it appears that as the mixin is only used in one file, there should be no problem to move all the functions into that class, i.e. no need to create a higher order component. Are there any thoughts on this? Does the original author know why a mixin was used originally?

damiangreen avatar Jun 05 '17 10:06 damiangreen