MCPcopy Index your code
hub / github.com/pqina/react-filepond / constructor

Function constructor

example/src/App.js:22–35  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

20// Component
21class App extends Component {
22 constructor(props) {
23 super(props);
24
25 this.state = {
26 // Set initial files, type 'local' means this is a file
27 // that has already been uploaded to the server (see docs)
28 files: [{
29 source: 'photo.jpeg',
30 options: {
31 type: 'local'
32 }
33 }]
34 };
35 }
36
37 handleInit() {
38 console.log('FilePond instance has initialised', this.pond);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected