I feel like I’m ready to implement my first ‘maidsafe component’ into my website.
And since I want to start simple, I decided to set my eyes on a guestbook,
because that was all the rage in the 90’s and early 2000’s.
To my dismay back then, you couldn’t just add it to your site, some other site hosted it
and that meant your guestbook was on some weird URL, which made me refuse it.
Now I can bring back that dream.
An even bigger reason is that a ‘comments component’ examples in the safe examples bundle.
Yet I can not get it work.
Here’s what I’ve tried:
I edited the following:
and then started the application:
[folatt@MyComputer non-editable-comments-web]$ yarn install && yarn build && yarn start
What I except to see is the instructional index page with the ‘comments component’ at the bottom.
What I see is just the instructional index page and this error in dev tools:
dev tools error
invariant.js?7313:42 Uncaught Error: _registerComponent(...): Target container is not a DOM element. at invariant (invariant.js?7313:42) at Object._renderNewRootComponent (ReactMount.js?b62d:271) at Object._renderSubtreeIntoContainer (ReactMount.js?b62d:365) at render (ReactMount.js?b62d:386) at renderApp (index.js?8749:35) at (index):84
Is the example still up to date?
Should the component worked right out of the box on the index page after a build?
Am I doing this wrong?
I’m hoping someone can shed light on this.