I'm trying to get myself familiarized with react.js with typescript. I tried to declare a Array of JSON, but it gives me error saying ... is not assignable to JSON
Here is my code:
import React from 'react'; type MyProps = { message?: string; }; type MyState = { chat_list : Array<JSON> count: number; // like this }; class ChatList extends React.Component<MyProps, MyState> { state: MyState = { count: 0, chat_list : [ { "name":"true", "active" : true } ] }; ... How can I resolve this?