Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function StarWar(props) {
- if (props.value != 0) {
- //I want to pass the props.others like a properties to the class Battle
- function testing(){
- //Tuka post metod
- //response = data.id
- //localStorage.setItem('battleid', JSON.stringify(id));
- console.log('yeaaaaaaaaaaaaaaaaaaaaaa');
- }
- return <div><button className="btn btn-warning"
- onClick={() => testing()}>
- </button>
- </div>
- }
- else {
- ...
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement