Support Center

Recent questions

About Koken

This Help Center provides support for Koken, a free content management system designed for photographers, artists and designers.

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Lens API in a React.js component?

Andrea

Aug 28, 2017 06:14AM EDT

Hi there,

I've been wondering if it'd be possible to create a custom template based on React.js (or Vue.js, etc...).

As far as I got since the Lens API allows to use some custom HTML tags my guess is that they can be passed into JSX, but I've got a feeling that then they won't be rendered properly or it will affect the page performance.
I was thinking to add a plugin to load up the JS bundle generated in React, if necessary.

Is that feasible? Has somebody ever experienced a solution like that?

Many Thanks

Up 0 rated Down

Andrea

Aug 28, 2017 02:26PM EDT
After an attempt I can answer my own question: JSX rises an error when Koken custom tag syntax is passed. Moreover - ofc - template vars are not recognised whatsoever.

Open to listen prospective other solutions.

This question has received the maximum number of answers.

support@koken.me
http://assets3.desk.com/
false
koken
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete