BetterErrors icon indicating copy to clipboard operation
BetterErrors copied to clipboard

state type defined after component gives state type escape scope error

Open chenglou opened this issue 7 years ago • 0 comments

Solution: first define type state then declare component

Basically, createComponent returns something of type component 'state for a not yet defined 'state. Then state gets defined later and you get the error message.

chenglou avatar Apr 29 '17 02:04 chenglou