Europa docs: From local dev to CI environment doc page
The todoapp example contains a Netlify plan which uses the latest dagger additions: do & Client API. We are thinking of merging the examples repository into this one to make working with this easier. This is a step in that direction. We are not using the yarn package so that we can revert https://github.com/dagger/dagger/pull/1673 without breaking this implementation. The GitHub Action is WIP, we will continue with that tomorrow: https://github.com/dagger/dagger-for-github/issues/24 Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
This commit is contained in:
18
pkg/universe.dagger.io/examples/todoapp/src/index.js
Normal file
18
pkg/universe.dagger.io/examples/todoapp/src/index.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import './index.css';
|
||||
import App from './App';
|
||||
|
||||
|
||||
const DATA = [
|
||||
{ id: "todo-0", name: "Eat", completed: true },
|
||||
{ id: "todo-1", name: "Sleep", completed: false },
|
||||
{ id: "todo-2", name: "Repeat", completed: false }
|
||||
];
|
||||
|
||||
ReactDOM.render(
|
||||
<React.StrictMode>
|
||||
<App tasks={DATA} />
|
||||
</React.StrictMode>,
|
||||
document.getElementById('root')
|
||||
);
|
Reference in New Issue
Block a user