MCPcopy Create free account
hub / github.com/LearnPrompt/LearnPrompt / constructor

Function constructor

src/subsections/landingpage/Newsletter.js:4–8  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

2
3class NewsletterSignupForm extends Component {
4 constructor(props) {
5 super(props);
6 this.state = { email: "", submitted: false };
7 this.handleChange = this.handleChange.bind(this);
8 }
9
10 handleChange(event) {
11 this.setState({ [event.target.name]: event.target.value });

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected