Exploring the Potential of Cryptocurrency Arbitrage

Posted on

Exploring the Potential of Cryptocurrency Arbitrage

.js
§§ 1000
+import React, { Component } from ‘react';
+import { connect } from ‘react-redux';
+import { addPrompt } from ‘../actions';
+
+class AddPrompt extends Component {
+ constructor(props) {
+ super(props);
+ this.state = {
+ title: ”,
+ body: ”,
+ };
+ this.onInputChange = this.onInputChange.bind(this);
+ this.onFormSubmit = this.onFormSubmit.bind(this);
+ }
+
+ onInputChange(e) {
+ this.setState({
+ [e.target.name]: e.target.value
+ });
+ }
+
+ onFormSubmit(e) {
+ e.preventDefault();
+ const { title, body } = this.state;
+ const prompt = { title, body };
+ this.props.addPrompt(prompt);
+ this.setState({
+ title: ”,
+ body: ”,
+ });
+ }
+
+ render() {
+ return (
+

+

Add Prompt

+

+
+
+
+
+

+

+
+
+