Skip to content Skip to sidebar Skip to footer

Rendering A Template From The Imports Folder In Meteor

From what I understand, the purpose of the imports folder is to store all your code that you import into main.js in the client folder. I'm trying to implement easysearch:autosugges

Solution 1:

The problem here is that you are mixing two front end libraries together.

A frontend library is a tool we can use to help us build the user interface of our applications. Some popular ones that people use with Meteor are Blaze, React and Angular.js

The syntax you are using {{>searchBox}} is syntax used by the Blaze library to render a Blaze template.

However, in your Meteor.startup() block you are using code needed by React. You've also indicated that you have been following the React tutorial. Unfortunately, you can't mix the two of these.

I suggest you start again and follow this tutorial instead. It's the exact same tutorial you've already been doing but it's the Blaze version - which will work with the syntax you've been using - {{>searchBox}}

I hope that helps

Post a Comment for "Rendering A Template From The Imports Folder In Meteor"