What I want to do is when I type some text in an input field, it should appear in another place realtime.
Below is my input;
A new library made by me React-chopper
Code Like angularjs in reactjs
Code without setState in reactjs
Go through examples for more description
import React, { Component } from 'react';
import { render } from 'react-dom';
import Rcp from 'react-chopper';
class App extends Component {
constructor(props) {
super(props);
this.state = {
name: 'React'
};
this.modal = Rcp(this.state, this);
}
tank = () => {
console.log(this.modal)
}
render() {
return (
this.modal.name = e.target.value} />
Bang Bang {this.modal.name}
);
}
}
render( , document.getElementById('root'));
Comments , Pr Are welcome ...Enjoy