Skip to content

Instantly share code, notes, and snippets.

@berkesayin
Created March 18, 2022 16:16
Show Gist options
  • Save berkesayin/012ff56d0ce411303b0ae32c7e5e79bb to your computer and use it in GitHub Desktop.
Save berkesayin/012ff56d0ce411303b0ae32c7e5e79bb to your computer and use it in GitHub Desktop.
State
constructor(props) {
super(props);
this.state = {
categories:
[
{categoryId: 1, categoryName: "Sports" },
{categoryId: 2, categoryName: "Economy"}
]
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment