+ this.category = React.createRef();
+
+ this.handle_submit = this.handle_submit.bind(this);
+ }
+
+ handle_submit(event) {
+ const category_input = this.category.current;
+ const category = category_input.value;
+
+ /* Prevent the default page-changing form-submission behavior. */
+ event.preventDefault();
+
+ console.log("Do something here with category: " + category);