I believe it should be treated as an official source.
Firstly, WOTC considers D&D Beyond to be an official digital toolset for the game (though it's worth reiterating that it isn't made by WOTC directly, but licensed through them):
This morning, Curse launched D&D Beyond—an official digital toolset for Dungeons & Dragons fifth edition.
Secondly, the books on D&D Beyond are considered to be 'digital sourcebooks', which, on their own site, are defined thusly:
A digital sourcebook is a completely digital version of one of the published books, such as the Player's Handbook or adventures like Curse of Strahd. You will get the book re-created in digital format, as well as unlock all of that book's content for use throughout the toolset - both for current tools and anything on the roadmap (such as encounter building/ combat tracking, etc.).
As they are considered a 'completely digital version of one of the published books', I'd say they're as official-source-worthy as said books.
In addition, BadEye (Adam Bradford, D&D Beyond product lead at Curse) also calls D&DB an official source, mentioning that their site is meant to be kept up to date with the rules as new changes come in:
Errata will be incorporated as it comes in. As an official source, it's important that we always stay current.
Ultimately, due to the above, I feel D&D Beyond's version of the content should be considered as official as the books themselves. If there's a discrepancy between their content and the most recent errata/printed version of a book, then the book wins, sure, but I don't think the potential for that kind of mismatch/data entry/out of date error would make the rules from the site overall considered 'unofficial'.
Disclaimer: The above only applies to content on D&DB from the official sourcebooks. D&DB also hosts usermade homebrew and unofficial sources such as the Blood Hunter class from Critical Role/Matthew Mercer- these are usually kept separate in the site's navigation. The SRD & Basic Rules are also hosted there in a combined section, but even the WOTC-hosted PDF/printed versions of the SRD is considered unofficial.
The sword of sharpness deals an extra 14 slashing damage when you roll a 20 on its attack roll. The SRD incorrectly says otherwise. Note that the SRD is not an official rules source for D&D. #DnD
@JeremyECrawford, 9:54 PM - 4 Jan 2018
(On the topic of "what's considered an official sourcebook?", @nitsua60's longstanding question/answer "Where do I find the “official” rules for D&D 5e?" is worth a read as well.)