Answer the question
In order to leave comments, you need to log in
How to make the copied minified react file work on another project?
Good afternoon!
There is a task - to copy animations from this site (mainly canvas).
The catch is that the entire js code of the site lies in one minified app.js file (of course, in addition to third-party libs), which contains React inside.
All content on the site appears after the initialization of the script in the footer:
window.onload = function () {
window.Application.init();
window.Application.load();
};
<body>
<div class="root"></div>
function(e, exports) {
e.exports = {
data: [{
title: ["Text"],
clients: ["Asics", "Nike"]
}, {
projects: [{
title: "Text",
slug: "text",
image_big: "images/home/image.jpg",
image_small: "images/home/image.jpg"
} etc...
<body>
Answer the question
In order to leave comments, you need to log in
Look at the vendor libraries. Check out the demos that are freely available on the official website or on codepen . They may have been used on the site. You can try to look for the use of libraries in the code. There is no need to copy the entire project. And even more so to try to run.
Tree.js demo example.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question