SHARE
TWEET

Untitled

a guest Dec 10th, 2018 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. export class Editor extends Components {
  2.   constructor(props) {
  3.     super(props);
  4.   }
  5.  
  6.   onViolationMouseEnter(value){
  7.     this.state.markers = [{ startRow: 0, endRow: 10, className: 'error-marker'}]
  8.     alert("ciccicicici")
  9.   }
  10.  
  11.   render() {
  12.     return (
  13.               <ViolationsResult
  14.                 onMouseOver={this.onViolationMouseEnter}
  15.               />
  16.     );
  17.   }
  18. }
  19.  
  20. export function ViolationsResult(props) {
  21.   return (
  22.         <Violations
  23.           onMouseOver={props.onMouseOver}
  24.         />
  25.   );
  26. }
  27.  
  28.  
  29. export function Violations(props) {
  30.   return (
  31.     <Violation onMouseOver={props.onMouseOver}/>;
  32.   );
  33. }
  34.  
  35.  
  36. export function Violation(props) {
  37.   const { violation } = props;
  38.   return (
  39.     <li
  40.       onMouseOver={() => violation.onMouseOver()}
  41.     >
  42.     </li>
  43. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top