0 votes
in ReactJS by
State the difference between getInitialState() and constructor()?

1 Answer

0 votes
by
If you want to create one component by extending ‘React. Component’, the constructor helps you to initialize the State. But, if you want to create by using ‘Reat.createClass.’ then you should use ‘genInitiaState.’
...