AndrewRayCode / AndrewRayCode/Unique-Id-Mixin

How to use with React components written in ES6.

Aperta
#3 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
15
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

This library looks like it solves the exact problem I am having.

However, I am using React components written in ES6, which "`extends React.Component`" rather than doing "`React.createClass(...)`".

According [to this page](https://toddmotto.com/react-create-class-versus-component/#mixins):

>React mixins are no longer supported when using React components written in ES6.

Do you know how I can use the "`Unique-Id-Mixin`" library in this scenario, or if I have any other options?

(Sorry for the noob question.)

Thanks in advance!

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.