Walkthroughs
Using the Bundled Source
3min
for most folks, you'll want to install slate via npm , in which case you can follow the regular installing slate from archbee docid\ jqm yk1kc19 cqwcxrhyh guide but, if you'd rather install slate by simply adding a \<script> tag to your application, this guide will help you to make the "bundled" use case simpler, each version of slate ships with a bundled source file called slate js to get a copy of slate js , download the version of slate you want from npm npm install slate\@latest and then look in the node modules folder for the bundled slate js file node modules/ slate/ dist/ slate js slate min js a minified version called slate min js is also included for convenience before you can add slate js to your page, you need to bring your own copy of react , react dom and react dom server , like so \<script src=" /vendor/react js">\</script> \<script src=" /vendor/react dom js">\</script> \<script src=" /vendor/react dom server js">\</script> this ensures that slate isn't bundling its own copy of react, which would greatly increase the file size of your application then you can add slate js after those includes \<script src=" /vendor/slate js">\</script> to make things easier, for quick prototyping, you can also use the unpkg com https //unpkg com/#/ delivery network that makes working with bundled npm modules easier in that case, your includes would look like \<script src="https //unpkg com/react/umd/react production min js">\</script> \<script src="https //unpkg com/react dom/umd/react dom production min js">\</script> \<script src="https //unpkg com/react dom/umd/react dom server browser production min js">\</script> \<script src="https //unpkg com/slate/dist/slate js">\</script> \<script src="https //unpkg com/slate react/dist/slate react js">\</script> that's it, you're ready to go!
🤔
Have a question?
Our super-smart AI,knowledgeable support team and an awesome community will get you an answer in a flash.
To ask a question or participate in discussions, you'll need to authenticate first.