I've been walking through the Quick Start guide for building extensions. Everything is working well until I reach the Components section. I've inserted the following code into the main.js
initializer:
import Post from 'flarum/components/Post';
app.initializers.add('acme-hello-world', function() {
Post.prototype.view = function() {
return (
<div className="Post">
:D
</div>
);
};
});
The javascript is then loaded into the forum page upon refreshing my tab. However, there is no change to the post view.
Anyone have ideas on why this might be? Or can anyone help direct me in troubleshooting this issue? Thanks.