This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import ListItem from './ListItem'; | |
export class Table extends React.Component { | |
// Dummy data for the table | |
state = { | |
data: tableData | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
const ChildComponent = (props) => { | |
return( | |
<h2> {props.message} </h2> | |
); | |
} | |
export default ChildComponent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import ChildComponent from './ChildComponent'; | |
class ParentComponent extends React.Component { | |
render(){ | |
return( | |
<div> | |
<ChildComponent message="Data from first component"/> | |
</div> | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
import numpy as np | |
image = cv2.imread('image.jpg') | |
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) | |
# template image |